+ 4

How to use string in c language

12th Jul 2018, 8:47 AM
Hemraj Kumar
Hemraj Kumar - avatar
5 Respuestas
+ 4
Hello, Hemraj Kumar ! A suitable lesson was found for your question https://www.sololearn.com/learn/2353/?ref=app
12th Jul 2018, 9:05 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
#include<string.h> and then use it's function strcpy() strcat() strlen() strrev() strcmp()
13th Jul 2018, 1:28 PM
Alim Ansari
Alim Ansari - avatar
+ 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
12th Jul 2018, 9:06 AM
Kargutkar Sail Sanjeev
Kargutkar Sail Sanjeev - avatar
+ 1
We use a char array.
12th Jul 2018, 3:10 PM
Abhishek Tandon
Abhishek Tandon - avatar
0
Kargutkar Sail Sanjeev whatsapp links are forbidden on SL, i suggest you delete that before a mod does
12th Jul 2018, 10:43 AM
hinanawi
hinanawi - avatar