Hi,
I'm getting seg fault in this
#include <iostream>
int main()
{
char *p;
*p='w';
std::cout<<p;
return 0;
}
I'm sure it is due to the line
*p='w';
I interpret this line as
Value at address p = 'w'
. I would like to hear an explanation on why I can't do this.
Thanks for your time