what is the difference between
const char *p, char const *p, const char* const p

Answer Posted / vignesh1988i

CONST char *p:
here the const. keyword is coming before the data
type... so the string here will be the constant but not he
pointer...
char CONST *p:
here also the string will be the constant but not the
pointer...
CONST char* CONST p:
here both , the string as well the pointer will be constant

Is This Answer Correct ?    64 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

759


Why calloc is better than malloc?

570


What is a global variable in c?

587


What is a stream?

642


What are near, far and huge pointers?

642






How a string is stored in c?

583


How many types of functions are there in c?

581


Explain what is the benefit of using const for declaring constants?

612


What are the disadvantages of c language?

614


What does s c mean on snapchat?

579


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

607


I heard that you have to include stdio.h before calling printf. Why?

582


What is the use of header files?

599


What is the explanation for the dangling pointer in c?

671


What is a program flowchart and how does it help in writing a program?

656