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
What is sizeof c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain how can you restore a redirected standard stream?
I need testPalindrome and removeSpace
#include
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Can an array be an Ivalue?
largest Of three Number using without if condition?
What is the process to create increment and decrement stamen in c?
What is ctrl c called?
c language interview questions & answer
What is integer constants?
What is #ifdef ? What is its application?
What is 2 d array in c?
How can I access an I o board directly?