Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // A program that prints it's own binary code.
  2. // Not garaunteed to work on every system.
  3.  
  4. #include <stdbool.h>
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7.  
  8. void end();
  9.  
  10. int main(int argc, char *argv[])
  11. {
  12. for(char* i = (char*) main; i < (char*) end; i++) {
  13. printf("%x", *i);
  14. }
  15. printf("\n");
  16.  
  17. return 0;
  18. }
  19.  
  20. void end() {}
Add Comment
Please, Sign In to add comment