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
Find MAXIMUM of three distinct integers using a single C statement
What is FIFO?
Write a program to swap two numbers without using a temporary variable?
What are unions in c?
What is an lvalue in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Distinguish between actual and formal arguments.
Do pointers store the address of value or the actual value of a variable?
Explain what is the difference between the expression '++a' and 'a++'?
FILE PROGRAMMING
What is data types?
What are loops c?
Explain how can I write functions that take a variable number of arguments?
What is const and volatile in c?
What is calloc() function?