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 to count no of words,characters,lines in a paragraph.

4432


Explain what is output redirection?

1197


What is zero based addressing?

1177


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2101


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2327


What does the c in ctime mean?

1098


How many keywords are there in c?

1080


How many parameters should a function have?

1197


ATM machine and railway reservation class/object diagram

5253


how can I convert a string to a number?

1084


How to establish connection with oracle database software from c language?

2205


What are the similarities between c and c++?

1079


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1092


What is the best organizational structure?

1124


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4281