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);
}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #107 · 20.6K reputationPosted Apr 13, 2021, 7:55 AM EDT