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
How would you obtain the current time and difference between two times?
What is %g in c?
Explain built-in function?
Explain the difference between structs and unions in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Why n++ execute faster than n+1 ?
What is null pointer constant?
Why do we use return in c?
Explain is it valid to address one element beyond the end of an array?
How can you find out how much memory is available?
Why is c so important?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Why doesnt this code work?
What's the right way to use errno?
Why do we use c for the speed of light?