Explain the difference between C and C++.
The programming language C, has structural programming data types where C++ has object oriented programming structures such as class-object, with features as polymorphism, Inheritance, Data abstraction and protection that are not available in C.C++ is an extension of C but cannot be seen the differences between two.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of a constructor? Destructor?
Can we use THIS Pointer in static function – Reason in C++?
Can we call a virtual function from a constructor?
What do you know about Volatile keyword in C++? Explain with an example code.
How to delete array of objects in C++? Proof by C++ code for proper deletion
How does free know the size of memory to be deleted
What is the difference between virtual functions and pure virtual functions?
dynamic scoping is
Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }
Is deconstructor overloading possible? If yes then explain and if no Then why?
Tell us the size of a float variable.
How many times will this loop execute? Explain your answer.