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

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


Please Help Members By Posting Answers For Below Questions

How many types of sorting are there in c?

855


What is the best way of making my program efficient?

797


What is huge pointer in c?

804


Is exit(status) truly equivalent to returning the same status from main?

858


Can you please compare array with pointer?

865


any "C" function by default returns an a) int value b) float value c) char value d) a & b

899


What is pragma c?

881


Can static variables be declared in a header file?

852


What is exit() function?

801


What is the difference between strcpy() and memcpy() function in c programming?

881


In a byte, what is the maximum decimal number that you can accommodate?

929


How is actual parameter different from the formal parameter?

828


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

983


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1681


What are header files in c?

848