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
What is the method to save data in stack data structure type?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What does the c preprocessor do?
Differentiate between static and dynamic modeling.
What are the 5 types of organizational structures?
Is calloc better than malloc?
Differentiate abs() function from fabs() function.
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What is the use of function overloading in C?
Subtract Two Number Without Using Subtraction Operator
What are the different types of endless loops?
plz let me know how to become a telecom protocol tester. thank you.
What is the advantage of an array over individual variables?
Explain goto?
What is a nested loop?