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

Is this program statement valid? INT = 10.50;

690


Is there a way to compare two structure variables?

619


Explain how do you print only part of a string?

652


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

581


What is the benefit of using const for declaring constants?

592






Can we access the array using a pointer in c language?

565


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1123


Difference between malloc() and calloc() function?

660


Why is a semicolon (;) put at the end of every program statement?

632


find the sum of two matrices and WAP for it.

640


Explain can static variables be declared in a header file?

684


What are linked lists in c?

652


What is the size of structure pointer in c?

617


How variables are declared in c?

576


What oops means?

588