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

Is there a way to compare two structure variables?

0 Answers  


pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()

2 Answers   TCS, ZenQ,


Famous puzzles which are generally asked by companies during interviews ?

1 Answers   3D PLM, Yahoo,


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

0 Answers  






What is the most efficient way to count the number of bits which are set in an integer?

0 Answers  


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a<b,printb.find the sum digits of that number & then print.if a==b multiply 10 with a & add 20 with b store in c and then print

0 Answers  


Can we declare a function inside a function in c?

0 Answers  


What is the Lvalue and Rvalue?

2 Answers  


Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.

2 Answers  


When we use void main and int main?

0 Answers  


Is int a keyword in c?

0 Answers  


Categories