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


Please Help Members By Posting Answers For Below Questions

What are the features of c languages?

633


Why malloc is faster than calloc?

594


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3663


How are structure passing and returning implemented?

594


What is variable initialization and why is it important?

623






What is an arrays?

658


What are the benefits of organizational structure?

577


Explain argument and its types.

608


What is a global variable in c?

592


What is the hardest programming language?

673


What is a program flowchart and explain how does it help in writing a program?

682


Stimulate calculator using Switch-case-default statement for two numbers

2451


Differentiate fundamental data types and derived data types in C.

621


What is a static function in c?

624


How does normalization of huge pointer works?

644