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

wats the diference btwen constant pointer and pointer to a
constant.pls give examples.

Answer Posted / sanjay

Pointer to a consttant ::: such that the value to which
pointer points can't be changed
const int *ptr1=7
*ptr=8 // invalid
constant pointer :::: pointer direction can't be cheged .
int *const x =6;
x=7 or x=&i // invalid
Location of pointer can't be chenged.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you obtain the current time and difference between two times?

1289


What is %g in c?

1078


Explain built-in function?

1133


Explain the difference between structs and unions in c?

1021


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1859


Why n++ execute faster than n+1 ?

2994


What is null pointer constant?

1158


Why do we use return in c?

998


Explain is it valid to address one element beyond the end of an array?

1213


How can you find out how much memory is available?

1068


Why is c so important?

1060


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1243


Why doesnt this code work?

1058


What's the right way to use errno?

1141


Why do we use c for the speed of light?

1203