const char *
char * const
What is the differnce between the above two?
Answer Posted / vidushi
Both are the method to declare a character pointer. but char
*const means pointer is sticked to accept a single address
but in case of const char * means u can assign it to
different variable address to it.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is abstraction in c++ with example?
Difference between inline functions and macros?
What is the use of map in c++?
What is endl c++?
What are the benefits of operator overloading?
What are keywords in c++?
What is a constant reference?
Mention the storage classes in c++.
What are the benefits of oop in c++?
What is the use of function pointer?
Write about the various sections of the executable image?
Why Pointers are not used in C++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
How can an improvement in the quality of software be done by try/catch/throw?
What is the best c++ book for beginners?