wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / sanjay
Pointer to a consttant ::: such that the value to which
pointer points can't be changed
const int *ptr1=7
*ptr=8 // invalid
constant pointer :::: pointer direction can't be cheged .
int *const x =6;
x=7 or x=&i // invalid
Location of pointer can't be chenged.
Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What is the difference between char array and char pointer?
What is a far pointer in c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
How can a process change an environment variable in its caller?
Does c have enums?
What are enums in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
in iso what are the common technological language?
write a proram to reverse the string using switch case?
What is %g in c?
What is difference between constant pointer and constant variable?
Can we increase size of array in c?
Linked lists -- can you tell me how to check whether a linked list is circular?
Where static variables are stored in memory in c?
Why header file is used in c?