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
What is volatile variable how do you declare it?
What is pragma c?
What are the types of pointers in c?
Explain how can I make sure that my program is the only one accessing a file?
Can we assign string to char pointer?
What is adt in c programming?
What are the properties of union in c?
Explain is it valid to address one element beyond the end of an array?
can any one tel me wt is the question pattern for NIC exam
What is %s and %d in c?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is a protocol in c?
i have a written test for microland please give me test pattern
Why c is called a mid level programming language?