const char *

char * const

What is the differnce between the above two?

Answer Posted / sowmya.....

const char * is a constant pointer but,....
char * const is a pointer to constant

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class template?

804


What is the difference between new() and malloc()?

1178


Explain object slicing in c++?

774


What is the main function c++?

812


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

744


How do we implement inheritance in c++?

812


What c++ library is string in?

778


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1706


What are the two types of comments?

752


Can we make any program in c++ without using any header file and what is the shortest program in c++.

814


what kind of projects are suitable for c and c++

811


Do you know what are static and dynamic type checking?

807


What are the advantages of using friend classes?

852


Where must the declaration of a friend function appear?

723


Should I learn c or c++ or c#?

744