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
Can enum be null?
What is polymorphism programming?
What is the purpose of enum?
officer say me - i am offered to a smoking , then what can you say
Can an interface inherit a class?
Can we override main method?
Why is polymorphism used?
How does polymorphism work?
What is abstraction oop?
Can private class be inherited?
What is super in oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Why do we use class?
What are the advantages of polymorphism?
What is property in oops?