Answers for "how to store string in c"

9

how to create a string in c

char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
char greeting[] = "Hello";
Posted by: Guest on September-26-2020
0

how to store string in c

char str[4] = "GfG"; /*One extra for string terminator*/
Posted by: Guest on March-29-2021

Code answers related to "how to store string in c"

Browse Popular Code Answers by Language