Open abhijeetgund34 opened 7 years ago
void main() { char s1[]="HelloWorld"; int i=0; clrscr();
while(s1[i]!='\0') { i++; } printf("length of string %s is %d",s1,i); getch(); }
include
include
void main() { char s1[]="HelloWorld"; int i=0; clrscr();
while(s1[i]!='\0') { i++; } printf("length of string %s is %d",s1,i); getch(); }