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
Keyword mean in declaration?
What do you mean by funtion prototype?
What is the difference between prefix and postfix versions of operator++()?
What is an adjust field format flag?
What is #include cmath?
Define pure virtual function?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
What is atoi in c++?
What is c++ and its uses?
List the merits and demerits of declaring a nested class in C++?
What are the two shift operators and what are their functions?
What do nonglobal variables default to a) auto b) register c) static
Explain the advantages of using friend classes.
What is the difference between global variables and static varables?
Explain linear search.