What will be the output of the following C++ code? [code] #include <iostream> using namespace std; #define PR(id) cout << "The

Ngọc Trâm

New member
What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    #define PR(id) cout << "The value of " #id " is "<<id
    int main()
    {
        int i = 10;
        PR(i);
        return 0;
    }
A. 10
B. 15
C. 20
D. 12
 

Tìm kiếm

Back
Top