Strings :
String is a group of character enclosed in double quotation mark and ends with a special character '\0'(Null).
Declaring strings :
char arrayname[size];
Example:
char name[30];
Initilisation of strings :
Method 1
char name[30]="DHANVANTARI-COMPUTERS";
Method 2
char name[10]={'D','I','C','E','\0'};
String is a group of character enclosed in double quotation mark and ends with a special character '\0'(Null).
Declaring strings :
char arrayname[size];
Example:
char name[30];
Initilisation of strings :
Method 1
char name[30]="DHANVANTARI-COMPUTERS";
Method 2
char name[10]={'D','I','C','E','\0'};
Comments
Post a Comment