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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the real time example of inheritance?

1087


What is encapsulation in oops?

964


What type of loop is a for loop?

1056


Is html an oop?

1010


Can abstract class have normal methods?

1001


What is polymorphism what are the different types of polymorphism?

956


How Do you Code Composition and Aggregation in C++ ?

25294


What is protected in oop?

1017


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2152


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3432


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2103


Can enum be null?

967


What is the importance of oop?

1044


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1151


How to use CMutex, CSemaphore in VC++ MFC

4743