Sign in

gwj / po_oopc · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • po_oopc
  • examples01-pl
  • 16-stack1
  • teststack.c
  • Reformatted code
    c0b14c54
    Grzegorz Jabłoński authored
    2022-09-16 14:36:36 +0200  
    Browse Code »
teststack.c 199 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "stack.h"
#include <stdio.h>

int main()
{
    init();
    push(1);
    push(2);
    push(3);
    printf("%d %d\n", pop(), pop());
    printf("%d\n", pop());
    finalize();
    return 0;
}