how to generate the length of a string without using len
funtion?
Answer Posted / dattathreya
The below function should do it:
int strLength(char *s)
{
int i;
for(i = 0; s[i]; i++);
return i;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Disadvantages of C language.
Which is best linux os?
Explain built-in function?
How can you tell whether a program was compiled using c versus c++?
What are the features of c language?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Is it better to bitshift a value than to multiply by 2?
What is spark map function?
Can a local variable be volatile in c?
What is a stream in c programming?
How do you define structure?
Explain void pointer?
Explain how do you use a pointer to a function?
Can you think of a logic behind the game minesweeper.