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

2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


What are nested functions in c?

0 Answers  


Define and explain about ! Operator?

0 Answers  


IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

5 Answers   TCS,


Write a program to find whether the given number is prime or not?

6 Answers  






how to find binary of number?

2 Answers  


Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


What is the difference between fread and fwrite function?

0 Answers  


Explain how are portions of a program disabled in demo versions?

0 Answers  


What is the collection of communication lines and routers called?

0 Answers  


Is multithreading possible in c?

0 Answers  


How can I call fortran?

0 Answers  


Categories