What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

Lò Ngọc

New member
What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    int main()
    {
        typedef int num;
        num a = 10, b = 15;
        num c = a + b + a - b;
        cout << c;
        return 0;
    }
A. 20
B. 15
C. 30
D. 25
 

Tìm kiếm

Back
Top