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?

Answers were Sorted based on User's Feedback



what is constant pointer?..

Answer / rekha_sri

Constant pointer:
-----------------
If you have a value in your program and it should not
change, or if you have a pointer and you don't want it to be
pointed to a different value, you should make it a constant
with the const keyword.

Is This Answer Correct ?    3 Yes 2 No

what is constant pointer?..

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

what is constant pointer?..

Answer / srinivasroyal

A constant pointer is nothing which can not allow any
arthametic operations on it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are the __date__ and __time__ preprocessor commands?

0 Answers  


What's wrong with "char *p = malloc(10);" ?

4 Answers  


How can I determine whether a machines byte order is big-endian or little-endian?

0 Answers  


What is a structural principle?

0 Answers  


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


Program to find the value of e raised to power x using while loop

5 Answers   IBM, N Tech,


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

0 Answers  


Explain setjmp()?

0 Answers  


State the difference between realloc and free.

0 Answers   Aricent,


What is the difference between formatted&unformatted i/o functions?

0 Answers  


how could explain about job profile

0 Answers  


Categories