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

A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

0 Answers  


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

0 Answers  


where do we use volatile keyword?

1 Answers  


where are auto variables stored? What are the characteristics of an auto variable?

0 Answers  


which type of aspect you want from the student.

0 Answers   IBM, TCS,






write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer

1 Answers  


Find occurence of a character in a sting.

3 Answers   TCS,


Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   Wipro,


What type of function is main ()?

0 Answers  


Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********

4 Answers  


will u please send me the placement papers to my mail???????????????????

0 Answers  


i want to know aptitude questions,technical questions

2 Answers  


Categories