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;
}
β
Correct Answer: (C)
ABC