what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / bhargav
Const char *P ->
declares a pointer through which you may be able to access
a char but you can not change it through the said pointer.
But the pointer itself can be changed.
char const *p ->
in this the value is constant
const char* const p ->
both address and value are constants
Is This Answer Correct ? | 13 Yes | 22 No |
Post New Answer View All Answers
What is function prototype?
Why is c so popular?
Can static variables be declared in a header file?
Explain goto?
Why shouldn’t I start variable names with underscores?
Was 2000 a leap year?
How do you determine whether to use a stream function or a low-level function?
How are variables declared in c?
How are 16- and 32-bit numbers stored?
How can I remove the leading spaces from a string?
What is the use of a static variable in c?
Can you please explain the difference between exit() and _exit() function?
Explain high-order bytes.
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is static memory allocation?