Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // A program that prints it's own binary code.
- // Not garaunteed to work on every system.
- #include <stdbool.h>
- #include <stdlib.h>
- #include <stdio.h>
- void end();
- int main(int argc, char *argv[])
- {
- for(char* i = (char*) main; i < (char*) end; i++) {
- printf("%x", *i);
- }
- printf("\n");
- return 0;
- }
- void end() {}
Add Comment
Please, Sign In to add comment