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

Refer to a name of class or function that is defined within a namespace?

624


What is difference between c++ 11 and c++ 14?

586


Which one is better- macro or function?

664


What is a tuple c++?

552


How would perform Pattern Matching in C++?

662






What are the two types of polymorphism?

604


Do you know about C++ 11 standard?

644


What you know about structures in C++?

604


How can you quickly find the number of elements stored in a dynamic array?

588


When one must use recursion function? Mention what happens when recursion functions are declared inline?

657


What are pointer-to-members? Explain.

639


what is a class? Explain with an example.

628


What is flush () in c++?

585


Write a program to interchange 2 variables without using the third one.

592


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

621