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


Please Help Members By Posting Answers For Below Questions

What is an expression?

841


Explain the properties of union.

824


What are the types of data types and explain?

860


Is multithreading possible in c?

765


How can I find the modification date of a file?

944


What are pointers? What are stacks and queues?

778


Do pointers need to be initialized?

804


What is sizeof c?

847


What is array of pointers to string?

795


What is difference between static and global variable in c?

760


What are control structures? What are the different types?

848


What are the usage of pointer in c?

916


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 “****”.

2932


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1485


Explain what is wrong with this program statement?

858