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

Why is c called c not d or e?

1115


Explain the use of 'auto' keyword in c programming?

1149


What is a struct c#?

1073


How do I use void main?

1104


What is keyword in c?

1035


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1278


What is a substring in c?

1054


What is the use of pointers in C?

1114


Is null always equal to 0(zero)?

1071


What is the size of enum in bytes?

1107


Difference between strcpy() and memcpy() function?

1189


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1593


What is function prototype?

1177


What are the valid places to have keyword “break”?

1115


What are the restrictions of a modulus operator?

1146