fork(1) download
  1. /*
  2.  *
  3. */
  4.  
  5. #include <stdlib.h>
  6.  
  7. void vla_print(int n)
  8. {
  9. int foo[n];
  10. printf("Got %zu bytes right there!\n", sizeof foo);
  11. }
  12.  
  13. int main(void)
  14. {
  15. vla_print(47);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5336KB
stdin
stdout
Got 188 bytes right there!