Hi, how does this work without segfault?
Hi, how does this work without segfault?
int main() {
char *m = (char*)main;
strcpy(m, "Hello!");
puts(m);
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Apr 13, 2021, 11:55 AM