What is the difference between const int *ptr and int const
*ptr???
Answer Posted / manjunath
a) const int *ptr and
b) int const *ptr
Both actually mean the same...
Read from Right to left:
for(a):-> ptr is a pointer to an integer Constant and
for(b):-> ptr is a pointer to a constant integer...
..............
int *const ptr----------> ptr is a constant pointer to an
integer...
| Is This Answer Correct ? | 95 Yes | 26 No |
Post New Answer View All Answers
What are the 4 pillars of oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is destructor example?
What are the 4 main oop principles?
Can a varargs method be overloaded?
What is encapsulation in ict?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is meant by oops concept?
What are the benefits of polymorphism?
How Do you Code Composition and Aggregation in C++ ?
What is overloading and its types?
#include
What are constructors in oop?
Why is encapsulation used?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)