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 the best way to comment out a section of code that contains comments?
Write a program for Overriding.
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
in linking some of os executables are linking name some of them
Why is this loop always executing once?
What is advantage of pointer in c?
write a programming in c to find the sum of all elements in an array through function.
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Do variables need to be initialized?
Why do we use int main?
Is there any demerits of using pointer?
What does. int *x[](); means ?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Explain the difference between exit() and _exit() function?
What is typedef example?