Examveda

What will be the output of the following C++ 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

Answer: Option A


Join The Discussion

Related Questions on Functions and Procedures in C plus plus