what is constant pointer?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / srinivasroyal
A constant pointer is nothing which can not allow any
arthametic operations on it.
Is This Answer Correct ? | 0 Yes | 0 No |
Is there a way to compare two structure variables?
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()
Famous puzzles which are generally asked by companies during interviews ?
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is the most efficient way to count the number of bits which are set in an integer?
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
Can we declare a function inside a function in c?
What is the Lvalue and Rvalue?
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.
When we use void main and int main?
Is int a keyword in c?