Strings on C related Questions and Answers


Question :   Which among the given options compares atmost n characters of string ch to string s?
1. int strncmp(ch, s, n)
2. int strcmp(ch, s)
3. int strncmp(s, ch, n)
4. int strcmp(s, ch)
Answer :   1 - int strncmp(ch, s, n)  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter