-In C programming, a string is essentially an array of ASCII code characters. Each character is stored by writing the corresponding 8-bit ASCII code of the character. So, One can initialize a string just like an array: +In C programming, a string is essentially an array of ASCII code characters. Each character is stored by writing the corresponding 8-bit ASCII code of the character. So, One can initialize a string just like an array:
char str[50]={'C',' ','P','r','o','g','r','a','m'};