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
what is the role you expect in software industry?
Explain what is the advantage of a random access file?
What is the difference between ++a and a++?
What happens if a header file is included twice?
Differentiate between functions getch() and getche().
How to set file pointer to beginning c?
Write a code on reverse string and its complexity.
while initialization of array why we use a[][2] why not a[2][]...?
Tell us something about keyword 'auto'.
in linking some of os executables are linking name some of them
What are header files? What are their uses?
What is the difference between the expression “++a” and “a++”?
Find MAXIMUM of three distinct integers using a single C statement
How will you divide two numbers in a MACRO?
What are structural members?