const char *

char * const

What is the differnce between the above two?

Answer Posted / beula

const char * is the pointer to a consant variable.
char * constant is a constant pointer to a char.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need constructors in c++?

606


Which ide is best for c++?

538


What are virtual constructors/destructors?

571


Can a function take variable length arguments, if yes, how?

565


Is C++ case sensitive a) False b) Depends on implementation c) True

610






Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

3694


Why do we use classes in c++?

571


What are the two types of polymorphism?

585


What is command line arguments in C++? What are its uses? Where we have to use this?

571


What is a down cast?

601


Define the process of error-handling in case of constructor failure?

557


How can I learn c++ easily?

616


What is the difference between a template and a macro?

578


What is the this pointer?

628


How does work in c++?

588