fork(2) download
  1. #include <stdio.h>
  2.  
  3. int p(n) {
  4. int a[n]; //works on C99 and above
  5.  
  6. return (&a)[n] - a;
  7. }
  8.  
  9. int main(void) {
  10. // your code goes here
  11.  
  12. printf("%d\n", p(7));
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
49