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

In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1308


What is a newline escape sequence?

1160


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

1190


What is %d called in c?

1281


C program to find all possible outcomes of a dice?

2410


what are bit fields? What is the use of bit fields in a structure declaration?

2200


In c programming language, how many parameters can be passed to a function ?

1167


What are register variables? What are the advantage of using register variables?

1232


Difference between macros and inline functions? Can a function be forced as inline?

1350


Why do we use int main instead of void main in c?

1199


How can you invoke another program from within a C program?

1120


can anyone please tell about the nested interrupts?

2183


How can I convert a number to a string?

1250


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

1097


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

1133