$ echo "(+ 5 5)" | ./a.out
10.000000
$ echo "(+ (- 3 2) (* 9 2))" | ./a.out
19.000000
$ echo "(/ 24 6 2)" | ./a.out
2.000000
$ echo "(/ 24 (/ 6 2))" | ./a.out
8.000000
$ echo "(+ 5 5)" | ./a.out
10.000000
$ echo "(+ (- 3 2) (* 9 2))" | ./a.out
19.000000
$ echo "(/ 24 6 2)" | ./a.out
2.000000
$ echo "(/ 24 (/ 6 2))" | ./a.out
8.000000
$ echo "(+ 5 5)" | ./a.out
10.000000
$ echo "(+ (- 3 2) (* 9 2))" | ./a.out
19.000000
$ echo "(/ 24 6 2)" | ./a.out
2.000000
$ echo "(/ 24 (/ 6 2))" | ./a.out
8.000000
I am notably unsure about my use of function pointers. It's literally the first time II've ever useused them (although it was pretty trivial).
Of course, any general remark about my coding style would be highly apreciatedappreciated.
I am notably unsure about my use of function pointers. It's literally the first time I ever use them (although it was pretty trivial).
Of course, any general remark about my coding style would be highly apreciated.
I am notably unsure about my use of function pointers. It's literally the first time I've ever used them (although it was pretty trivial).
Of course, any general remark about my coding style would be highly appreciated.