how to create a string in c
snippet in c

how to create a string in c

user5433

char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
char greeting[] = "Hello";

declare string in c

user5445

char string[20];