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

Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1256


How can you quickly find the number of elements stored in a dynamic array?

1096


What is c++ runtime?

1153


Keyword mean in declaration?

1119


Can you pass an array to a function in c++?

1055


What is this pointer in c++?

1487


What is scope operator in c++?

1133


Write a program to interchange 2 variables without using the third one.

1108


Explain the difference between c & c++?

1140


What is the difference between equal to (==) and assignment operator (=)?

1138


What is the use of endl?

1031


What are virtual functions in c++?

1235


What is helper in c++?

1151


Can I learn c++ in a week?

1128


What are the two shift operators and what are their functions?

1141