Quiz: Math
Test your understanding of the mathematics in C++.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the output of the following C++ program?
int a,b,sum,subtr;
a=100;
b=20;
sum=a+b;
subtr=a-b;
cout << "sum is: "<< sum;
cout << "subtr is: " << subtr;
A.
sum is: 100 subtr is: 20
B.
sum is: 20
subtr is: 100
C.
sum is: 120 subtr is: 80
D.
sum is: 80 subtr is: 120
1 / 5