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 + 4;
  9.  
  10. printf( "c: %p\nb: %p\na: %p\n",
  11. (void *)&c,
  12. (void *)&b,
  13. (void *)&a );
  14. printf( "d: %hhu\n",
  15. *d );
  16. }
  17.  
  18.  
  19.  
  20. int main(void)
  21. {
  22. foo( 1, 2, 3, 4 );
  23.  
  24.  
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
c: 0xbffec960
b: 0xbffec964
a: 0xbffec968
d: 2