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
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
Why calloc is better than malloc?
What is a global variable in c?
What is a stream?
What are near, far and huge pointers?
How a string is stored in c?
How many types of functions are there in c?
Explain what is the benefit of using const for declaring constants?
What are the disadvantages of c language?
What does s c mean on snapchat?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
I heard that you have to include stdio.h before calling printf. Why?
What is the use of header files?
What is the explanation for the dangling pointer in c?
What is a program flowchart and how does it help in writing a program?