How to use string in c language


7/12/2018 8:47:27 AM

Hemraj Kumar

6 Answers

New Answer


Hello, Hemraj Kumar ! A suitable lesson was found for your question https://www.sololearn.com/learn/2353/?ref=app


#include<string.h> and then use it's function strcpy() strcat() strlen() strrev() strcmp()


Hello Hemraj Kumar, here i give u little example of string in c, char hello[6] = {'H', 'e', 'l', 'l', 'o', '\0'}; Explanation: String contains one dimensional array with terminated by null character '\0'. char hello[6] = {'H', 'e', 'l', 'l', 'o', '\0'}; printf("message: %s\n", hello ); return 0; Output: Hello


We use a char array.


Kargutkar Sail Sanjeev whatsapp links are forbidden on SL, i suggest you delete that before a mod does


its rough