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

What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    int main()
    {
        void a = 10, b = 10;
        int c;
        c = a + b;
        cout << c;
        return 0;
    }
A. 20
B. compile time error
C. runtime error
D. 40
 

Tìm kiếm

Back
Top