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
What are the advantages of the functions?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What do mean by network ?
How many keywords are there in c?
What is the significance of c program algorithms?
What is data type long in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
List some of the static data structures in C?
What is 1f in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How are Structure passing and returning implemented by the complier?
What are the 4 data types?
Can we add pointers together?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
a value that does not change during program execution a) variabe b) argument c) parameter d) none