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

Answer Posted / bava

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 ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me when would you use a pointer to a function?

603


What is meant by recursion?

629


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

638


What are header files in c programming?

651


what is the difference between class and unio?

1854






Where define directive used?

600


Explain the concept and use of type void.

623


How can I find the modification date of a file?

698


Difference between macros and inline functions? Can a function be forced as inline?

706


How do you use a 'Local Block'?

715


Explain the use of function toupper() with and example code?

651


Explain what does the format %10.2 mean when included in a printf statement?

773


What is array in C

704


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4540


How can I make sure that my program is the only one accessing a file?

674