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

what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2487


What are the 4 types of programming language?

1190


What is the difference between declaring a variable and defining a variable?

1341


How do you declare a variable that will hold string values?

1230


What is nested structure in c?

1117


Which is better pointer or array?

1069


Who invented b language?

1473


What does sizeof int return?

1132


What is the advantage of an array over individual variables?

1293


How many loops are there in c?

1163


What are types of functions?

1078


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1395


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1134


Mention four important string handling functions in c languages .

1157


Can we declare variables anywhere in c?

1053