const char *
char * const
What is the differnce between the above tow?.
Answer Posted / subbu
answer is opposite to above answer
first case is constant pointer means that the address which
is assigned at the time of decalaration can not be changed
yet.
in the second case it is pointer to a constant, means the
value stored at that particular address cannot be changed
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What are static variables in c?
How can I make it pause before closing the program output window?
what is the different bitween abap and abap-hr?
What is #error and use of it?
I came across some code that puts a (void) cast before each call to printf. Why?
What is c preprocessor mean?
Using which language Test cases are added in .ptu file of RTRT unit testing???
How can I write a function analogous to scanf?
When should a type cast be used?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Difference between constant pointer and pointer to a constant.
What are the similarities between c and c++?
FILE PROGRAMMING
Tell us something about keyword 'auto'.