const char *

char * const

What is the differnce between the above two?

Answer Posted / karthik natarajan

const char * makes the data constant

char * constant makes the pointer constant

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

621


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

599


What is the outcome of cout< a) 16 b) 17 c) 16.5

620


Explain Memory Allocation in C/C++ ?

625


What is the full form of stl in c++?

664






Can user-defined object be declared as static data member of another class?

544


Explain the benefits of proper inheritance.

631


Differentiate between structure and class in c++.

589


What is the use of register keyword with the variables?

541


Why is c++ not purely object oriented?

555


What is a singleton class c++?

540


Search for: what is pair in c++?

576


When do we use copy constructors?

589


What is the difference between strcpy() and strncpy()?

602


Does c++ support multilevel and multiple inheritances?

537