Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main()
{
char arr[4] = "abcd";
cout << arr;
return 0;
}
β
Correct Answer: (C)
Error: the string in the array is too long.