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

Difference between const char* p and char const* p?

Answer Posted / hrpynux@gmail.com

There is no difference between const char *p and char const *p as both are pointer to a const char and position of '*'(asterik) is also same. 2. char *const ptr : This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by ptr.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a catch statement?

987


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

975


an integer constant must have atleast one a) character b) digit c) decimal point

983


Write a Program to find the largest of 4 no using macros.

1034


What is a base class?

1052


What is the cout in c++?

1007


What c++ is used for?

1012


What are the classes in c++?

1055


Do class declarations end with a semicolon?

1033


What does the ios::ate argument do?

1123


Does c++ have a hash table?

945


Can we change the basic meaning of an operator in c++?

1073


If there are two catch statements, one for base and one for derived, which should come first?

993


How does the copy constructor differ from the assignment operator (=)?

1093


What do you mean by function and operator overloading in c++?

996