What is the difference between the functions memmove() and memcpy()?
Answer / Jyoti Chaudhary
Both memmove() and memcpy() are used to copy memory blocks in C++. However, their behavior differs when the source and destination memory blocks overlap. memmove() can handle this case by ensuring that memory is copied safely, while memcpy() does not check for overlapping blocks, which might lead to undefined behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you declare A pointer to a function which receives nothing and returns nothing
What does catch(…) mean?
Define friend function.
How many lines of code you have written for a single program?
What are the advantages of c++?
How to access a variable of the structure?
What are the differences between the function prototype and the function defi-nition?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What is the difference between the indirection operator and the address of oper-ator?
What are proxy objects?
Write about the use of the virtual destructor?
How would you differentiate between a pre and post increment operators while overloading?