I have this code:
char *ps = "hello";
scanf("%s", ps);
I want to write a string, let's pretend "a", to pointer without using an array. Trying to scanf a string into ps causes error interrupted by signal 10: SIGBUS. I'd be happy to hear an explanation for such a behavior.