Also,
says s is the address of the h, which is
const. It's const becuse "hello" is a const array since it is a literal.
When you try to change this literal at run time you crash trying to change a const value.
You may do as manontheedge recommends rvided you delete the array.
If you need a local variable cod it this way:
Now this says that s is a char array allocated on the stack and initialized to hello+\0. The array has 6 elements.