how to find string length wihtout using c function?
Answer Posted / ankitecian
int StrLen(const char *_input)
{
int _len = 0;
while( *(_input + _len) != NULL)
{
_len++;
}
return _len;
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the primitive data types in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How can you return multiple values from a function?
What's the right way to use errno?
What is #ifdef ? What is its application?
Can an array be an Ivalue?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is the difference between fread buffer() and fwrite buffer()?
Differentiate between the = symbol and == symbol?
How old is c programming language?
Why is main function so important?
What language is c written?
Where are the auto variables stored?
What is wrong in this statement?
What is use of #include in c?