Explain dangling pointer.
No Answer is Posted For this Question
Be the First to Post Answer
What are the advantages of c++ over c?
Floating point representation and output seems to be compiler dependent?
Write about the retrieval of n number of objects during the process of delete[]p?
What is the first name of c++?
What are the four main data types?
What is an action class?
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?
When volatile can be used?
Why should you learn c++?
How do you establish an is-a relationship?
What is a null object in c++?
Why do we need templates?