[Solved] Segmentation Fault in Simple C Calculator
[ad_1] You’re declaring a number of int* variables, but never allocating any memory for them. They should be int instead, since they contain indexes into the stack. int valueTop = 0; int operandTop = 0; Then you should use these variables, you don’t need to dereference them. But when you pass them to functions that … Read more