Difference between const char *p, char * const p and const char * const p | GeeksforGeeks

preview_player
Показать описание

This video is contributed by Vishal Gulia.

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

wow sir thank u so much u provide a new concept

usama
Автор

For *const char *p*
All confusion lies in the line -

const char *p = &x;
printf ("the value which is pointed to by p : %c\n", *p);

The confusion is that how could the Output to the above 2 statements be :
X
and not the address of the variable X
because that's what is stored in the pointer, *p.

sayantaniguha
Автор

sir please make videos on python java and C#

usama
Автор

What if variable is declared const in case of char * const ptr;
Will it behave as:
const char * const ptr?

thefireagen
join shbcf.ru