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

what is constant pointer?

Answer Posted / srsabariselvan

constant Pointer:
we can't modify the value of pointer.i.e.,value of
pointer is constant.
Declaration:
int i=2,j;
int const *p;
p=&i;
p=&j;
Pointer Constant:
in case of Pointer constant, we can't modify the address of
pointer.i.e,address stored in pointer is constant.
This must be intialized
Declaration:
int i=2;
int *const p=&i;
*p=4;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I call fortran?

1099


What is time complexity c?

1041


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1136


What is a constant and types of constants in c?

1174


How can I find out if there are characters available for reading?

1165


How can you access memory located at a certain address?

1161


What is #line in c?

1072


Why can't I perform arithmetic on a void* pointer?

1156


What are the different data types in C?

1246


Why do we use & in c?

1050


Are the outer parentheses in return statements really optional?

1158


Describe how arrays can be passed to a user defined function

1340


Which is better malloc or calloc?

1157


What is a program?

1336


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2173