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
Differentiate between calloc and malloc.
What is nested structure in c?
What is a pointer in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is the most efficient way to store flag values?
explain what is fifo?
Why do we use int main?
What is the use of structure padding in c?
When the macros gets expanded?
What are the two types of functions in c?
Explain how do you list files in a directory?
write a program for the normal snake games find in most of the mobiles.
What is void main () in c?
Explain what is the difference between a string and an array?
how we can make 3d venturing graphics on outer interface