what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / magdaleen
In a const char *p the chrac pointed by 'p' is a const, so
u cant change the value of the charac ponted by 'p', but u
can make 'p' refer to some other location.
In a char const *p, the ptr 'p' is constant not the
character refered by it, so u can not make 'p' refer to
anyother location, but u can change the value of the charac
pointed by 'p'
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
Is that possible to store 32768 in an int data type variable?
What are predefined functions in c?
What are identifiers and keywords in c?
Where is volatile variable stored?
How do I determine whether a character is numeric, alphabetic, and so on?
What was noalias and what ever happened to it?
What is the use of typedef in c?
Difference between malloc() and calloc() function?
Is a house a mass structure?
What is indirection?
Should a function contain a return statement if it does not return a value?
How does #define work?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the use of pointers in C?
What is switch in c?