What is the difference between const int *ptr and int const
*ptr???
Answers were Sorted based on User's Feedback
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 |
Answer / abdul sami
'const int* ptr' means the value whose address is being
held by ptr is constant and cant be changed while
'int const *ptr' means the pointer cant be changed like it
cant be incremented or decremented although you can change
the date pointed to by ptr.
| Is This Answer Correct ? | 41 Yes | 57 No |
Can you inherit a private class?
which feature are not hold visual basic of oop?
What is virtual class and friend class?
What is the purpose of enum?
What is a superclass in oop?
What is abstraction in oop with example?
hi all..i want to know oops concepts clearly can any1 explain??
Program to print 0 to 9 in cross order
features of OOPS
22 Answers Ness Technologies, Satyam,
what is the difference between a package and a software?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
What is ambiguity in c++