+ 4
How to use string in c language
6 Respostas
+ 4
Hello, Hemraj Kumar !
A suitable lesson was found for your question
https://www.sololearn.com/learn/2353/?ref=app
+ 2
#include<string.h>
and then use it's function
strcpy()
strcat()
strlen()
strrev()
strcmp()
+ 1
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
+ 1
We use a char array.
0
Kargutkar Sail Sanjeev whatsapp links are forbidden on SL, i suggest you delete that before a mod does