what is the difference between
const char *p, char const *p, const char* const p

Answer Posted / bhargav

Const char *P ->
declares a pointer through which you may be able to access
a char but you can not change it through the said pointer.
But the pointer itself can be changed.

char const *p ->
in this the value is constant

const char* const p ->
both address and value are constants

Is This Answer Correct ?    13 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is struct padding needed?

625


How can I determine whether a machines byte order is big-endian or little-endian?

615


how is the examination pattern?

1595


which type of aspect you want from the student.

1701


How to declare pointer variables?

683






What is c system32 taskhostw exe?

582


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

585


What are local static variables? How can you use them?

641


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1475


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1875


What is break in c?

585


What are header files? What are their uses?

634


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

643


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

704


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

621