Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

difference between Low, Middle, High Level languages in c ?

2144


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

4000


Create a simple code fragment that will swap the values of two variables num1 and num2.

1329


Explain about C function prototype?

1143


How can I get random integers in a certain range?

1127


What are pointers really good for, anyway?

1118


How many loops are there in c?

1165


Tell me what is the purpose of 'register' keyword in c language?

1040


Why & is used in c?

1248


Explain 'bit masking'?

1137


Why we use int main and void main?

1119


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1994


Write a program in c to replace any vowel in a string with z?

1174


What are the 4 types of programming language?

1192


Can stdout be forced to print somewhere other than the screen?

1091