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 / vignesh1988i

as for as i know.....

1) const char * :
here the character pointer is a constant which can point to
oly one character type memory location throught the program.

2) char * const :
hrere the pointer is not a constant , the character variable
used after it will be constant.. in that variable we cant
make any changes... but in pointer we can make


thank you

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of array float a(10)?

1147


Who invented bcpl language?

1198


How can I read a binary data file properly?

1180


How do I use void main?

1092


Explain how can I manipulate strings of multibyte characters?

1208


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1642


How do c compilers work?

1142


What is a far pointer in c?

1047


What is %d used for?

1042


Does * p ++ increment p or what it points to?

1122


What is a loop?

1065


What is the difference between strcpy() and memcpy() function in c programming?

1091


When should a type cast not be used?

1069


What is #include called?

1065


What are inbuilt functions in c?

1038