how to find string length wihtout using c function?
Answer Posted / j.j.anand kamlesh
void main()
{
int i;
char ch[100];
printf("ENTER THE STRING :");
gets(ch);
for(i=1;ch[i];i++);
printf("THIS IS THE LENGTH : %d",i);
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do we print only part of a string in c?
When should the register modifier be used? Does it really help?
What is the importance of c in your views?
What are the advantages of c language?
Explain setjmp()?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Are pointers integer?
What is the difference between #include
Whats s or c mean?
The difference between printf and fprintf is ?
What are integer variable, floating-point variable and character variable?
Which is better between malloc and calloc?
Can the “if” function be used in comparing strings?
What are inbuilt functions in c?
Can a file other than a .h file be included with #include?