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 purpose of new operator?
What is the difference between an array and a list?
Why should we use null or zero in a program?
What is constructor and destructor in c++?
Tell me can a pure virtual function have an implementation?
Differentiate between structure and class in c++.
Which function cannot be overloaded c++?
Explain selection sorting. Also write an example.
What is bubble sort c++?
Can a program run without main in c++?
What programming language should I learn first?
Are strings immutable in c++?
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
What are the benefits of c++?
What is anonymous object in c++?