
Write a program that evaluates a compact arithmetic expression.
./expr_tree_eval '8+2*5'Expected result
18\nFor your own tracking. Tests grade your code.
./expr_tree_eval '(8+2)*5'Expected result
50\nExpected files
expr_tree_eval.cAllowed functions
malloccallocreallocfreeprintfisdigitwrite
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that evaluates a compact arithmetic expression.
./expr_tree_eval '8+2*5'Expected result
18\nFor your own tracking. Tests grade your code.
./expr_tree_eval '(8+2)*5'Expected result
50\nExpected files
expr_tree_eval.cAllowed functions
malloccallocreallocfreeprintfisdigitwrite
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.