What is the difference between the functions memmove() and memcpy()?
No Answer is Posted For this Question
Be the First to Post Answer
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
What is the difference between new() and malloc()?
What is the difference between stack and heap memory?
give me some class & objects examples?
How do c++ struct differs from the c++ class?
What is time_t c++?
What is setfill c++?
Does c++ have a hash table?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What size is allocated to the union variable?
Explain the uses of static class data?
What is an iterator?