What will be the output of the following C++ code snippet? #include <iostream>…

What will be the output of the following C++ code snippet?

#include <iostream>
using namespace std;
int main() {
    int a = 25, b = 14;
    cout << a << " + " << b << " = " << a + b;
    return 0;
}
  1. A.

    14 + 12 = 25

  2. B.

    14 - 0 = 14

  3. C.

    25 + 14 = 39

  4. D.

    Compilation Error

  5. E.

    Syntax Error

Attempted by 134 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…