Ex 1
char name1[15];
scanf(“%15c”,&name1);
Ex 2
char name2[20];
scanf(“%s”,&name2);
Ex 3
char add[20];
scanf(“%[a-z]”,&add);
Ex 4
char add[20];
scanf(“%[^\n]”,&add);
Read This: strncpy() strncat() strstr () strlen() Predefined function defined in string.h . Returns the len...
No comments:
Post a Comment