wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / rani
Constant pointer cannot be reassigned to different objects
once its initialized. It can be used to modify the object
that it points to.
Eg.
int *const constPtr;
*constPtr =0; //can be modified like this
Pointer to constant can be reassigned to point to another
object of same type.
int const *ptrConst;
ptrConst = 0;
Is This Answer Correct ? | 37 Yes | 3 No |
Post New Answer View All Answers
Can we replace the struct function in tree syntax with a union?
What is pass by value in c?
formula to convert 2500mmh2o into m3/hr
Can the size of an array be declared at runtime?
What is sizeof array?
can anyone suggest some site name..where i can get some good data structure puzzles???
What are the application of c?
What is sizeof int?
Explain what is gets() function?
Explain b+ tree?
What are keywords in c with examples?
What is c value paradox explain?
Can a variable be both static and volatile in c?
What is the difference between the = symbol and == symbol?
What is the difference between fread buffer() and fwrite buffer()?