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

Find MAXIMUM of three distinct integers using a single C statement

1071


What is FIFO?

1728


Write a program to swap two numbers without using a temporary variable?

1128


What are unions in c?

1030


What is an lvalue in c?

1129


What does the characters “r” and “w” mean when writing programs that will make use of files?

1484


Distinguish between actual and formal arguments.

1085


Do pointers store the address of value or the actual value of a variable?

1082


Explain what is the difference between the expression '++a' and 'a++'?

1214


FILE PROGRAMMING

2245


What is data types?

1091


What are loops c?

1056


Explain how can I write functions that take a variable number of arguments?

1081


What is const and volatile in c?

1050


What is calloc() function?

1103