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

Constant pointer cannot be reassigned to different objects
once its initialized. It can be used to modify the object
that it points to.

Eg.
int *const constPtr;

*constPtr =0; //can be modified like this

Pointer to constant can be reassigned to point to another
object of same type.

int const *ptrConst;

ptrConst = 0;

Is This Answer Correct ?    37 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the 10 different models of writing an addition program in C language?

1880


How can you pass an array to a function by value?

1099


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1127


What would be an example of a structure analogous to structure c?

979


code for replace tabs with equivalent number of blanks

2140


Suggesting that there can be 62 seconds in a minute?

1031


Explain logical errors? Compare with syntax errors.

1057


How will you divide two numbers in a MACRO?

1115


What does c value mean?

1173


write a program to find out prime number using sieve case?

2074


What is a static function in c?

1148


Explain how are portions of a program disabled in demo versions?

1104


What is string constants?

1135


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1242


What is the mean of function?

1103