What is the use of 'this' pointer?
Answer / Divya Gupta
'this' pointer is a pointer to the object that calls the function. It is used to access the non-static members of a class from within the member functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use setw in c++?
What is size of null class?
Why use of template is better than a base class?
Which compiler does turbo c++ use?
What is the use of this pointer in c++?
Explain function overloading
In what situations do you have to use initialization list rather than assignment in constructors?
How many bit combinations are there in a byte?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Explain public, protected, private in c++?
What are stacks?
Types of storage and scope of each type