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

What are the advantages and disadvantages of c language?

780


What is formal argument?

893


What is extern c used for?

784


What is a pragma?

894


What is the difference between a string and an array?

936


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

905


When should you use a type cast?

823


What is the difference between scanf and fscanf?

909


What is string constants?

903


Are comments included during the compilation stage and placed in the EXE file as well?

888


What do header files do?

831


Where does the name "C" come from, anyway?

886


What is getche() function?

824


In C programming, what command or code can be used to determine if a number of odd or even?

841


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6303