all about pointers
Answers were Sorted based on User's Feedback
Answer / ps
Pointers are variables which hold the address of other
variables.
int i = 10;
int *a = &i;
i = 20;
where a will store the address of variable i and *a will
have the value of i.
There are different types of pointers in C++:
Null pointers
Void pointers
Wild pointers
this pointers
| Is This Answer Correct ? | 3 Yes | 0 No |
what is virtual function?
26 Answers Aspire, HP, Infosys, RoboSoft, TCS,
What does the keyword "static" mean?
What is the real time example of encapsulation?
what is the difference between function template and template of function?explain with example.
what are the characteristics of oops?
why destructor is not over loaded?
What is oops in simple words?
Write A Program using Single and Multiple Inheritance.
the difference between new and malloc
What is the importance of oop?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
What is multiple inheritance?