difference between memcpy and strcpy



difference between memcpy and strcpy..

Answer / swetcha

A. memcpy can copy null bytes also if the size of memory is
given
strcpy stops after the first null byte.

Is This Answer Correct ?    31 Yes 1 No

Post New Answer

More C Interview Questions

What is substring in c?

0 Answers  


how to convert an char array to decimal array

4 Answers  


main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


Why do we need arrays in c?

0 Answers  


what is the difference between strcpy() and memcpy() function?

2 Answers  


FILE PROGRAMMING

0 Answers   Wipro,


What is the best style for code layout in c?

0 Answers  


How reliable are floating-point comparisons?

0 Answers  


What is malloc calloc and realloc in c?

0 Answers  


What is variables in c?

0 Answers  


Is that possible to add pointers to each other?

0 Answers  


Categories