[Solved] Addition and Subtraction in C using fscanf()
[ad_1] Let’s assume your input file contains the following as in your example: 1 + 2 + 5 – 3 = The outer scanf reads with %d. This picks up 1 as the integer value 1 and puts it in result. Now the inner scanf runs with %c. It reads the space after 1 so … Read more