Code:
void ReverseString(char* String)
{
String[1] = 'a';
}
Code:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040094c in ReverseString (String=0x400a74 "Hello") at main.cpp:33
33 String[1] = 'a';
is this real life? I swear anything beyond RISC assembly is so complicated- not worth it.