fork download
  1. #include <assert.h>
  2.  
  3. int mod_256(int x)
  4. {
  5. return (int)(unsigned char)x;
  6. }
  7.  
  8. int main()
  9. {
  10. assert(mod_256(257) == 257 % 256);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4360KB
stdin
Standard input is empty
stdout
Standard output is empty