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 would be an example of a structure analogous to structure c?
What is abstract data structure in c?
What is the difference between int main and void main in c?
Write a program to generate the Fibinocci Series
What is %d used for?
Write a program that accept anumber in words
How can I read data from data files with particular formats?
What is structure pointer in c?
Differentiate between null and void pointers.
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is the difference between typedef and #define?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is the size of structure pointer in c?
What is the c language function prototype?
How can I find out if there are characters available for reading?