const char *
char * const
What is the differnce between the above tow?.

Answer Posted / kamaljit singh

in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where define directive used?

825


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

993


Can we change the value of #define in c?

782


Explain what does the function toupper() do?

843


Explain the difference between structs and unions in c?

773


What is #pragma statements?

848


Write a program to print factorial of given number using recursion?

796


The __________ attribute is used to announce variables based on definitions of columns in a table?

962


What is the use of gets and puts?

780


Explain how can I prevent another program from modifying part of a file that I am modifying?

866


What are the application of c?

844


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

934


How do you construct an increment statement or decrement statement in C?

1000


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1568


Describe static function with its usage?

877