Strings on C related Questions and Answers - Page 4

Question 32 : What does the following function returns void *memmove(void *s1,const void s2, size_t n);?
1. returns the value of s1
2. returns the value of s2
3. doesn't return any value
4. returns the value of s1 and s2
View Answer   Discuss with Members

Question 34 : which of the following function returns a pointer to the located string or a null pointer if string is not found.
1. strtok()
2. strstr()
3. strspn()
4. strrchr()
View Answer   Discuss with Members

Question 35 : Which of the following is the right syntax to copy n characters from the object pointed to by s2 into the object pointed to by s1?
1. void *memcpy(void *s1,const void *s2,size_t n);
2. void *memcpy(void *s2, const void *s1, size_t n);
3. void memcpy(void *s1,const void *s2, size_t n);
4. void memcpy(void *s2,const void *s1,size_t n);
View Answer   Discuss with Members

Question 36 : The ______function appends not more than n characters.
1. strcat()
2. strcon()
3. strncat()
4. memcat()
View Answer   Discuss with Members

Question 37 : _______ occurs when a result is too large in magnitude to represent errors as a floating-point value of the required type.
1. underflow
2. significance loss
3. domain
4. overflow
View Answer   Discuss with Members

Question 38 : What occurs when a result has nowhere near the number of significant digits indicated by its type.
1. domain
2. underflow
3. overflow
4. significance loss
View Answer   Discuss with Members

Question 39 : The function strsp() is the complement of strcspn().
1. true
2. false
3.
4.
View Answer   Discuss with Members


View 31 - 40 of 60 Questions

* 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