Write about the use of the virtual destructor?
No Answer is Posted For this Question
Be the First to Post Answer
What are the benefits of pointers?
What does the linker do?
Why do we need templates?
How would you use the functions randomize() and random()?
What is the operator in c++?
Which is the best c++ compiler?
daily Routine of father
What do you mean by call by value and call by reference?
What are the two types of comments, and how do they differ?
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?
Why do we use string in c++?
What is isdigit c++?