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
How do you define a string?
What is a stream in c programming?
writ a program to compare using strcmp VIVA and viva with its output.
Is there any demerits of using pointer?
What is pre-emptive data structure and explain it with example?
Explain the use of #pragma exit?
What extern c means?
How does placing some code lines between the comment symbol help in debugging the code?
What is the significance of scope resolution operator?
When can a far pointer be used?
Why flag is used in c?
In a header file whether functions are declared or defined?
How can you return multiple values from a function?
What is %g in c?
Explain what are multidimensional arrays?