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 are keywords in c with examples?
What is meant by initialization and how we initialize a variable?
Is c still used?
What is wrong with this statement? Myname = 'robin';
What is context in c?
Write a program on swapping (100, 50)
Apart from dennis ritchie who the other person who contributed in design of c language.
How is = symbol different from == symbol in c programming?
What is the difference between functions abs() and fabs()?
cavium networks written test pattern ..
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What does the function toupper() do?
while initialization of array why we use a[][2] why not a[2][]...?
what do you mean by inline function in C?