write variable in string c code example
Example 1: declare string in c
char string[20];
Example 2: how to store string in c
char str[4] = "GfG"; /*One extra for string terminator*/
char string[20];
char str[4] = "GfG"; /*One extra for string terminator*/