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

Answers were Sorted based on User's Feedback



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

Answer / manoj

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

Is This Answer Correct ?    4 Yes 0 No

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

Answer / vinoth kumar

strcpy copies the data from one string to another...

memcpy copies the data's memory...

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C Interview Questions

Differentiate between the = symbol and == symbol?

0 Answers  


In a header file whether functions are declared or defined?

0 Answers   TISL,


What is const volatile variable in c?

0 Answers  


What is string function c?

0 Answers  


What is double pointer in c?

0 Answers  


What does %p mean c?

0 Answers  


How can I call a function with an argument list built up at run time?

0 Answers  


Why are algorithms important in c program?

0 Answers  


how can i print "hello"

3 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


Output for following program using for loop only * * * * * * * * * * * * * * *

3 Answers  


LOGIC OF Bodmas?

1 Answers  


Categories