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


Please Help Members By Posting Answers For Below Questions

Keyword mean in declaration?

799


What do you mean by funtion prototype?

809


What is the difference between prefix and postfix versions of operator++()?

817


What is an adjust field format flag?

879


What is #include cmath?

835


Define pure virtual function?

741


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 .

920


What is atoi in c++?

812


What is c++ and its uses?

881


List the merits and demerits of declaring a nested class in C++?

792


What are the two shift operators and what are their functions?

810


What do nonglobal variables default to a) auto b) register c) static

898


Explain the advantages of using friend classes.

835


What is the difference between global variables and static varables?

813


Explain linear search.

827