Write any small program that will compile in "C" but not
in "C++"
Post New Answer View All Answers
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Can we specify variable field width in a scanf() format string? If possible how?
Mention the ways in which parameterized can be invoked.
What is anonymous object in c++?
What is the use of map in c++?
What is the advantage of an external iterator.
Are c and c++ different?
Can you pass a vector to a function?
What is the difference between multiple and multilevel inheritance in c++?
What is private inheritance?
How one would use switch in a program?
Why do we use using namespace std in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Do you know the use of vtable?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.