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 use of getchar functions?
What is the acronym for ansi?
What is unary operator?
What is a newline escape sequence?
What does c mean in standard form?
What is sizeof return in c?
How important is structure in life?
hi any body pls give me company name interview conduct "c" language only
How can I sort more data than will fit in memory?
Can you add pointers together? Why would you?
Explain what happens if you free a pointer twice?
Do array subscripts always start with zero?
List some applications of c programming language?
How can type-insensitive macros be created?
what do u mean by Direct access files? then can u explain about Direct Access Files?