Differentiate between declaration and definition.
Answer / Magan Singh
Declaration in C++ is a statement that tells the compiler about the existence of a variable, function, or class. Definition, on the other hand, provides details about the variable, function, or class, such as its type, size, and implementation.
| Is This Answer Correct ? | 0 Yes | 0 No |
In which memory a class gets stored(in heap /in stack)? And why??
What is size of a object of following class? class Foo { public: void foo(){} }
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
What is type of 'this' pointer? Explain when it is get created?
What is endl c++?
What does it mean to declare a member variable as static?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What does extern mean in a function declaration in c++?
Explain object slicing in c++?
Explain overriding.
Is c++ pass by reference or value?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal