CLASS EXERCISE C2
What is the output of the following program?
#include <stdio.h> main() { int value1, value2, sum; value1 = 35; value2 = 18; sum = value1 + value2; printf("The sum of %d and %d is %d\n", value1, value2, sum); }
Note that the program declares three variables, all integers, on the same declaration line. This could've been done by three separate declarations,
int value1; int value2; int sum;