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
Why isn't any of this standardized in c? Any real program has to do some of these things.
Which are low level languages?
What is 02d in c?
How can I read a binary data file properly?
Is int a keyword in c?
In c programming language, how many parameters can be passed to a function ?
What is c language & why it is used?
C program to find all possible outcomes of a dice?
What is the best organizational structure?
Tell us two differences between new () and malloc ()?
What is structure pointer in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
How to find a missed value, if you want to store 100 values in a 99 sized array?