Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can enum be null?

1068


What is polymorphism programming?

1173


What is the purpose of enum?

1056


officer say me - i am offered to a smoking , then what can you say

2158


Can an interface inherit a class?

1106


Can we override main method?

1279


Why is polymorphism used?

1083


How does polymorphism work?

1181


What is abstraction oop?

1144


Can private class be inherited?

1221


What is super in oop?

1254


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?

2249


Why do we use class?

1145


What are the advantages of polymorphism?

1080


What is property in oops?

1130