how to generate the length of a string without using len
funtion?
Answer Posted / shreesha vailaya
int strlength(char s[])
{
int i,len;
for(i=0;s[i];i++)
len++;
return len;
}
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is the difference between c &c++?
What is getch () for?
What is c token?
hi, which software companys will take,if d candidate's % is jst 55%?
Write a program to check prime number in c programming?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
How can you increase the allowable number of simultaneously open files?
What happens if a header file is included twice?
Describe wild pointers in c?
Can you write the function prototype, definition and mention the other requirements.
Explain how do you sort filenames in a directory?
Can an array be an Ivalue?
Explain the use of #pragma exit?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }