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
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
How can you quickly find the number of elements stored in a dynamic array?
What is c++ runtime?
Keyword mean in declaration?
Can you pass an array to a function in c++?
What is this pointer in c++?
What is scope operator in c++?
Write a program to interchange 2 variables without using the third one.
Explain the difference between c & c++?
What is the difference between equal to (==) and assignment operator (=)?
What is the use of endl?
What are virtual functions in c++?
What is helper in c++?
Can I learn c++ in a week?
What are the two shift operators and what are their functions?