#include <iostream>using namespace std; extern void* __start_text; int main() { for(int i = 0; i < 8192; i++) { char x = *((char*)__dso_handle + i); if (isprint(x)) putchar(x); else putchar('.'); }}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:8:24: error: ‘__dso_handle’ was not declared in this scope char x = *((char*)__dso_handle + i); ^~~~~~~~~~~~
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!