What is this pointer in c++?
Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object. ... Only member functions have a this pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a C++ Program to Generate Random Numbers between 0 and 100
What are the differences between the function prototype and the function defi-nition?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
Differentiate between a copy constructor and an overloaded assignment operator.
Can create new c++ operators?
Where is atoi defined?
Why is the function main() special?
What is the use of 'this' pointer?
Explain what data encapsulation is in c++?
Do vectors start at 0 c++?
Write a function that swaps the values of two integers, using int* as the argument type?
Explain the concept of inheritance in C++.