Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$ 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.