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...

const char *
char * const
What is the differnce between the above tow?.

Answer Posted / subbu

answer is opposite to above answer
first case is constant pointer means that the address which
is assigned at the time of decalaration can not be changed
yet.
in the second case it is pointer to a constant, means the
value stored at that particular address cannot be changed

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a string?

1060


What is a stream in c programming?

1099


writ a program to compare using strcmp VIVA and viva with its output.

1994


Is there any demerits of using pointer?

1024


What is pre-emptive data structure and explain it with example?

3671


Explain the use of #pragma exit?

1136


What extern c means?

943


How does placing some code lines between the comment symbol help in debugging the code?

954


What is the significance of scope resolution operator?

1367


When can a far pointer be used?

978


Why flag is used in c?

1082


In a header file whether functions are declared or defined?

1094


How can you return multiple values from a function?

1068


What is %g in c?

1028


Explain what are multidimensional arrays?

1017