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 is an expression?
Explain the properties of union.
What are the types of data types and explain?
Is multithreading possible in c?
How can I find the modification date of a file?
What are pointers? What are stacks and queues?
Do pointers need to be initialized?
What is sizeof c?
What is array of pointers to string?
What is difference between static and global variable in c?
What are control structures? What are the different types?
What are the usage of pointer in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Explain what is wrong with this program statement?