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 *d1 = &c - 1;
  9. unsigned char *d2 = &c - 1;
  10.  
  11. printf( "a: %p\nb: %p\nc: %p\n",
  12. (void *)&a,
  13. (void *)&b,
  14. (void *)&c );
  15. printf( "d1: %hhu\n",
  16. *d1 );
  17. printf( "d2: %hhu\n",
  18. *d2 );
  19. }
  20.  
  21.  
  22.  
  23. int main(void)
  24. {
  25. foo( 1, 2, 3, 4 );
  26.  
  27.  
  28. return 0;
  29. }
  30.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
a: 0xbfb02ec8
b: 0xbfb02ec4
c: 0xbfb02ec0
d1: 191
d2: 191