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 to declare a variable?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What functions are used in dynamic memory allocation in c?
what is use of malloc and calloc?
What is anagram in c?
How do you initialize pointer variables?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What are the different types of pointers used in c language?
What is the use of f in c?
What is the use of typedef in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is restrict keyword in c?
What is a char c?
C language questions for civil engineering