fork download
  1. #include <stdio.h>
  2.  
  3. void foo( unsigned char a,
  4. unsigned char b,
  5. unsigned char c,
  6. ... )
  7. {
  8. unsigned char *d = &c - 1;
  9.  
  10.  
  11. printf( "d: %hhX\nc: %p\nb: %p\na: %p\n",
  12. d,
  13. (void *)&c,
  14. (void *)&b,
  15. (void *)&a );
  16. }
  17.  
  18.  
  19.  
  20. int main(void)
  21. {
  22. foo( 1, 2, 3, 4 );
  23.  
  24.  
  25. return 0;
  26. }
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘foo’:
prog.c:15: error: format ‘%hhX’ expects type ‘int’, but argument 2 has type ‘unsigned char *’
stdout
Standard output is empty