Multiple choice technology programming languages

What is output of following #include int main() { cout << "R4R" << endl return 0; }

  1. Execution time error

  2. syntax error

  3. R4R

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The code has a syntax error because the cout statement lacks a terminating semicolon before return 0;. Additionally, `` is an outdated header style, but the missing semicolon directly triggers a compilation syntax error, preventing successful execution or outputting of the string.