Strings on C related Questions and Answers


Question :   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);
Answer :   1 - void *memcpy(void *s1,const void *s2,size_t 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