0

Can anybody help me with this stack operation program?

https://code.sololearn.com/cJvHJo7MOs86/?ref=app

14th Dec 2022, 3:48 PM
Yash Pandya
2 odpowiedzi
+ 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.
15th Dec 2022, 2:56 PM
Tina
Tina - avatar
+ 3
Put your code in c file, you're using python not c language.
14th Dec 2022, 4:17 PM
Kashyap Kumar
Kashyap Kumar - avatar