Professional Documents
Culture Documents
String
String
C Programming
Method 1 :
char address[] = {'D', 'H', 'A', 'K', ‘A’, ‘\0’};
Method 1 :
char address[] = {'D', 'H', 'A', 'K', ‘A’, ‘\0’};
*The size of an array must be defined while declaring a C string variable. Because it is used to
calculate how many characters are going to be stored inside that string.