Examveda

What will be the output of the following C++ code?
#include <stdio.h> 
#include<iostream>
using namespace std;
int main()
{
    int a = 21;
    int c ;
    c = a++;
    cout << c;  
    return 0;
}

A. 21

B. 22

C. 23

D. 20

Answer: Option A


Join The Discussion

Related Questions on Classes and Objects in C plus plus