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 solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain indirection?
Why pointers are used?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Is main an identifier in c?
What’s the special use of UNIONS?
What is difference between array and pointer in c?
Write a program to swap two numbers without using the third variable?
plz let me know how to become a telecom protocol tester. thank you.
Differentiate between Macro and ordinary definition.
Is null equal to 0 in sql?
What is the purpose of clrscr () printf () and getch ()?
what is ur strangth & weekness
What are the ways to a null pointer can use in c programming language?
Explain the use of keyword 'register' with respect to variables.