0
Can anybody help me with this stack operation program?
2 Respostas
+ 1
Yash Pandya 1.Your array has room for 10 ints, so check the size after scanf.
2. t is initially -1 so peep function will be stack[-1] which is an error, check that too.
3. option 5 in do while is exit. it is character 5, or '5' (ASCII code 53) but you compare it with 5 so it'll never exit.
currently I see these.
put your code in a new C code, not python.
+ 3
Put your code in c file, you're using python not c language.