difference between memcpy and strcpy

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to execute a program using if else condition and the output should enter number and the number is odd only...

1935


Write a program to implement queue.

874


write a program to print largest number of each row of a 2D array

2093


What are header files in c?

813


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

804


What functions are in conio h?

890


What are the 4 data types?

774


Are the expressions * ptr ++ and ++ * ptr same?

863


Write a c program to demonstrate character and string constants?

1915


what do u mean by Direct access files? then can u explain about Direct Access Files?

1847


What is the difference between struct and union in C?

884


What is static and volatile in c?

981


Is there any possibility to create customized header file with c programming language?

830


Explain the difference between exit() and _exit() function?

899


What is the advantage of a random access file?

866