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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static identifier?

693


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

601


What is an operator?

649


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

649


Can we add pointers together?

608






What is a pragma?

660


Write a program for Overriding.

672


Which node is more powerful and can handle local information processing or graphics processing?

813


What is data structure in c programming?

561


Explain what is the difference between the expression '++a' and 'a++'?

620


Explain high-order bytes.

668


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

2548


Explain what are preprocessor directives?

616


What is the purpose of void pointer?

588


How can you pass an array to a function by value?

595