fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int count;
  6. char *p = (char *)&count;
  7. char mask = 9;
  8.  
  9. if (scanf("%d", &count) != 1) {
  10. printf("Input error");
  11. return 0;
  12. }
  13.  
  14. for (int i = 0; i < sizeof(int); i++) {
  15. *p = *p | mask;
  16. p++;
  17. }
  18.  
  19. printf("%d", count);
  20.  
  21. return 0;
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
151587081