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 two?

Answer Posted / vidushi

Both are the method to declare a character pointer. but char
*const means pointer is sticked to accept a single address
but in case of const char * means u can assign it to
different variable address to it.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

1037


What is the object serialization?

1098


How do you save a c++ program?

985


What do you mean by ‘void’ return type?

1003


What is malloc in c++?

973


What is class definition in c++ ?

1032


Explain rethrowing exceptions with an example?

981


What is dynamic and static typing?

1138


give me an example for testing a program showing the test path .show how the test is important and complex.

2861


What language is a dll written in?

968


Where can I run c++ program?

1009


What is a constructor in c++ with example?

1073


Why is the function main() special?

1047


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

931


What are built-in functions? What is the syntax for the definition?

1029