C   48

octal

Guest on 25th April 2022 01:49:57 AM

  1. #include <stdio.h>
  2.  
  3. int main() {
  4.         int i = 40;
  5.         int j = 040;
  6.         printf( "i=40=%d, j=040=%d\n", i, j );
  7.         printf( "The complement of j=~j= %d\n", ~j );
  8.         return 0;
  9. }
  10. // i=40=40, j=040=32
  11. // The complement of j=~j= -33

Raw Paste


Login or Register to edit or fork this paste. It's free.