fork download
  1. #include "stdio.h"
  2. #include <stdlib.h>
  3.  
  4. int foo(int x) {
  5. return x + 5;
  6. }
  7.  
  8. int bar() {
  9. return 3;
  10. }
  11.  
  12.  
  13. int main() {
  14. int x[foo(3+rand())];
  15. printf("%zu\n", sizeof(x));
  16.  
  17. int y = foo(3+rand());
  18. int ya[y];
  19. printf("%zu\n", sizeof(ya));
  20.  
  21. int z = 3 + rand();
  22. int zz = foo(z);
  23. int za[zz];
  24. printf("%zu\n", sizeof(za));
  25.  
  26. int a[foo(bar()+rand())];
  27. printf("%zu\n", sizeof(a));
  28.  
  29. return 0;
  30. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
2922190268
3387723576
2431803844
2563580396