C Programming - 54 - Introduction to String

preview_player
Показать описание
A character array is called String in a C program. By using String you can save a word or a sentence. Consider the following array declaration.
char name[5];
Here name is a character array capable of holding 5 characters. Or we can say that name is a String.
You can initialize a string in the same way you initialize a integer array. At the end of every String the compiler insert a special character '\0'. '\0' Indicates the end of the String.
Рекомендации по теме