Actually "Hello" is a string literal, and p = "Hello" will point the address of p to the "read only" memory location where "Hello" is stored.Since *p is a char and not a group of characters, p="Hello" will only store 'H' at the address p.
Actually "Hello" is a string literal, and p = "Hello" will point the address of p to the "read only" memory location where "Hello" is stored.
Clarification - c++ - C null pointer with string literals - Stack Overflow
Yes Neuron I should have tried it by myself but I was a bit impatience.... and thnx for your explanation buddyThis is basic stuff .You should have figured it out on your own.