Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Dynamic memory allocation in C? Name the dynamic allocation functions.

1418


Can static variables be declared in a header file?

1062


How can a program be made to print the name of a source file where an error occurs?

1228


Differentiate between Macro and ordinary definition.

1388


What is the explanation for the dangling pointer in c?

1117


How do you redirect a standard stream?

1110


How can a program be made to print the line number where an error occurs?

1089


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3325


What are the different properties of variable number of arguments?

1166


Apart from dennis ritchie who the other person who contributed in design of c language.

1406


What are the benefits of c language?

1183


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2926


Explain how can I convert a string to a number?

1104


What is meant by initialization and how we initialize a variable?

1053


Do pointers take up memory?

1165