Answers for "what is string in c programming"

C
0

string in c

1. char str[] = "GeeksforGeeks";

2. char str[50] = "GeeksforGeeks";

3. char str[] = {'G','e','e','k','s','f','o','r','G','e','e','k','s','\0'};

4. char str[14] = {'G','e','e','k','s','f','o','r','G','e','e','k','s','\0'};
Posted by: Guest on April-22-2022
0

string in c and how it works

Strings are defined as an array of characters. The difference between a 
character array and a string is the string is terminated with a special
character ‘\0’.
Posted by: Guest on February-06-2022

Code answers related to "what is string in c programming"

Code answers related to "C"

Browse Popular Code Answers by Language