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 does != Mean in c?

582


Which header file should you include if you are to develop a function which can accept variable number of arguments?

805


Place the #include statement must be written in the program?

567


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1651


What is the process of writing the null pointer?

605






What is a structural principle?

636


What is time complexity c?

563


Why c language?

642


Write a program to swap two numbers without using the third variable?

591


What is a pointer in c?

677


What is the purpose of realloc()?

665


What is main () in c?

584


What is #include called?

565


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

640


What is getch() function?

645