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 / kamaljit singh

in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is maximum size of array in c?

1039


Is it better to use malloc() or calloc()?

1111


How to delete a node from linked list w/o using collectons?

2778


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1499


Define Spanning-Tree Protocol (STP)

1127


Explain about block scope in c?

1093


What is function prototype in c language?

1031


What are pointers really good for, anyway?

1062


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1073


What is a char in c?

993


What is file in c language?

1003


How can I access an I o board directly?

1089


What are identifiers in c?

1199


What are global variables?

1184


What is the difference between union and structure in c?

1174