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

What is the use of getchar functions?

1185


What is the acronym for ansi?

1051


What is unary operator?

1107


What is a newline escape sequence?

1103


What does c mean in standard form?

1180


What is sizeof return in c?

1037


How important is structure in life?

1087


hi any body pls give me company name interview conduct "c" language only

2283


How can I sort more data than will fit in memory?

1112


Can you add pointers together? Why would you?

1128


Explain what happens if you free a pointer twice?

1090


Do array subscripts always start with zero?

1301


List some applications of c programming language?

958


How can type-insensitive macros be created?

1171


what do u mean by Direct access files? then can u explain about Direct Access Files?

2096