Writing a program that adds two numbers together may seem like a trivial task. We obviously need to declare three variables, two to hold values of the numbers to be added, known as addends, and another to hold the sum. The following recipe illustrates some problems that arise due to word length.
The following steps demonstrate how to perform arithmetic operations:
addTwoNums_c3v0. Invoke uVision5 and create a new project named
addTwoNumswithin this folder.
helloWorld_c2v0, from the Writing to console Window recipe in Chapter 2, C Language Programming.