fork download
  1.  
  2. #include <stdio.h>
  3. #define MAX 1
  4.  
  5. int top =-1;
  6. int arr[MAX];
  7.  
  8. void push(int element)
  9. {
  10. arr[++top] = element; //top = 0
  11. }
  12.  
  13.  
  14.  
  15. int main()
  16. {
  17. push(1);
  18.  
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 5312KB
stdin
45
stdout
Standard output is empty