Saturday, October 22, 2011

solution of balagurusamy of chapter 7.11

#include<stdio.h>
#include<STRING.H>
main()
{
char c[25];
int i,s=0;
printf("Enter the text:\n");
gets(c);
for(i=0;c[i]!='\0';++i)
{
 s+=1;
}
printf("Length of the string= %d",s);
return 0;
}

No comments:

Post a Comment