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
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Can static variables be declared in a header file?
How can a program be made to print the name of a source file where an error occurs?
Differentiate between Macro and ordinary definition.
What is the explanation for the dangling pointer in c?
How do you redirect a standard stream?
How can a program be made to print the line number where an error occurs?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the different properties of variable number of arguments?
Apart from dennis ritchie who the other person who contributed in design of c language.
What are the benefits of c language?
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
Explain how can I convert a string to a number?
What is meant by initialization and how we initialize a variable?
Do pointers take up memory?