Question PRG-CPP-0030
EasyWhat is the output of this program?
#include <iostream>
using namespace std;
int main() {
auto x = 5 + 2.5;
cout << x;
return 0;
}
- A.
8
- B.
7
- C.
7.5
- D.
5
Sign up free to see the answer and a step-by-step explanation.