In Part 1, we separated saving source code, building a program, and running it. Now let's give the program values to store and calculations to perform.
Our goal is to understand variables, initialization, assignment, and the types inside a small arithmetic expression. By the end, you will be able to explain why storing 5 / 2 in a double produces 2.0 , and calculate a useful progress percentage.
Series: C, One Experiment at a Time — Part 2.
Before you start: You should be able to save, build, and run a C program. Part 1 walks through those steps .
Test environment: Windows, MSVC, C17 mode, x64. Commands use an x64 Visual Studio developer command prompt. The arithmetic examples use small values and nonzero divisors.
1.…