A

Admin • 802.91K Points
Coach

Q. What is the output of the following C++ code?

Code:
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
char str[7] = "ABC";
cout << str[3];
cout << str;
return 0;
}
  • (A) C
  • (B) ABCD
  • (C) ABC
  • (D) CAB
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.