[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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?

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

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here