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 / singamsa

const char*p - p is pointer to the constant character i.e
value in that address location is constact

char const *p - same as above

const char* const p - p is the constant pointer which
points to the constant string, both value and address are
constants

Is This Answer Correct ?    115 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should the volatile modifier be used?

1170


Why should I prototype a function?

1186


Write a code to generate a series where the next element is the sum of last k terms.

1227


What is the size of array float a(10)?

1143


How can I read data from data files with particular formats?

1047


Explain null pointer.

1114


What are structure types in C?

1096


In which language linux is written?

1224


Write a code on reverse string and its complexity.

1033


What is wrong with this initialization?

1005


What are different types of variables in c?

1069


What is sizeof array?

1055


What is union in c?

1115


What are the loops in c?

994


Using which language Test cases are added in .ptu file of RTRT unit testing???

4276