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

What are the different categories of functions in c?

1139


What is dynamic dispatch in c++?

1072


Why & is used in c?

1199


what is ur strangth & weekness

2443


shorting algorithmS

2262


What are linked lists in c?

1134


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1383


What is %s and %d in c?

1050


write a c program in such a way that if we enter the today date the output should be next day's date.

2203


What is far pointer in c?

1321


what does static variable mean?

1119


What is difference between %d and %i in c?

1248


Can you please explain the difference between malloc() and calloc() function?

1131


Explain the difference between exit() and _exit() function?

1175


Can we assign string to char pointer?

1125