C Programming :: Functions - Discussion
Home > C Programming > Functions > MCQs Questions Discussion
31 / 53
Which of the following function is correct that finds the length of a string?
Which of the following function is correct that finds the length of a string?
Aint xstrlen (char *s) { int length=0; while (*s!='\0) { length++; s++; } return (length); }
Bint xstrlen (char s) { int length=0; while (*s!='\0') { length++; s++; } return (length); }
Cint xstrlen (char *s) { int length=0; while (*s!='\0') { length++; } return (length); }
Dint xstrlen (char *s) { int length=0; while (*s!='\0') { s++; } return (length); }
Answer: Option (Login/Signup)
Show Explanation
Nagarro selection process update | Aptitude test scheduled
Asked In ::
Nagarro selection process update | Aptitude test scheduled
Read Full Answer
Report Error
Please Login First Click Here