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
What is a static variable in c?
Should I learn data structures in c or python?
What is int main () in c?
will u please send me the placement papers to my mail???????????????????
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is the heap in c?
Explain which function in c can be used to append a string to another string?
Are global variables static in c?
Can we change the value of static variable in c?
What does c mean before a date?
What is structure in c definition?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is a macro in c preprocessor?
When should we use pointers in a c program?
Why c is called a mid level programming language?