On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
No Answer is Posted For this Question
Be the First to Post Answer
List the features of oops in c++?
How can you find the nodes with repetetive data in a linked list?
What are guid?
How do you initialize a class member, class x { const int i; };
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 need function?
Is it possible to have a recursive inline function in c++?
What is the best way to declare and define global variables?
What is scope operator in c++?
What is the difference between Class and Structure?
40 Answers HP, IBM, Samsung, TCS,
Explain the register storage classes in c++.
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?