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

int i =12;
int * const ptr = 24; //constant pointer

you can't change the ptr value

const int *ptr = 24;//ptr to a constant

int const * ptr = 24;//ptr to a constant


you can't change the value at ptr

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is FIFO?

1699


What is return in c programming?

970


In C language what is a 'dangling pointer'?

1138


Explain the difference between the local variable and global variable in c?

1073


What are types of structure?

1118


How reliable are floating-point comparisons?

1094


What are the application of void data type in c?

1190


How is a macro different from a function?

1173


Explain high-order and low-order bytes.

1095


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

995


How can I send mail from within a c program?

1026


How many main () function we can have in a project?

1109


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1586


Which one would you prefer - a macro or a function?

1081


Explain how can I write functions that take a variable number of arguments?

1076