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

How can I make sure that my program is the only one accessing a file?

1347


Explain 'bus error'?

1164


Why use int main instead of void main?

1175


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2401


What is #line in c?

1072


What is #define used for in c?

1109


What is pointer to pointer in c language?

1210


using for loop sum 2 number of any 4 digit number in c language

2415


Write the control statements in C language

1275


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1159


what is stack , heap ,code segment,and data segment

2763


Do pointers need to be initialized?

1161


What is pointer in c?

1246


When should a type cast not be used?

1107


What is union and structure in c?

1284