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
How can I call fortran?
What is time complexity c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is a constant and types of constants in c?
How can I find out if there are characters available for reading?
How can you access memory located at a certain address?
What is #line in c?
Why can't I perform arithmetic on a void* pointer?
What are the different data types in C?
Why do we use & in c?
Are the outer parentheses in return statements really optional?
Describe how arrays can be passed to a user defined function
Which is better malloc or calloc?
What is a program?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent