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 an auto variable in c?

1167


Suggesting that there can be 62 seconds in a minute?

996


Can we replace the struct function in tree syntax with a union?

1238


In C programming, what command or code can be used to determine if a number of odd or even?

990


What is cohesion in c?

922


Can 'this' pointer by used in the constructor?

1043


What is main () in c?

1012


How can I recover the file name given an open stream or file descriptor?

1029


What is void c?

1012


How can you tell whether a program was compiled using c versus c++?

1043


What are valid operations on pointers?

1149


Is c dynamically typed?

1090


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1595


What is selection sort in c?

1017


How many parameters should a function have?

1127