Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
char str[5] = "ABC";
6.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
char str[5] = "ABC";
6.
cout
Answer: Option A
Was this answer helpful ?
We are just printing the values of first 3 values.
$ g++ array.cpp
$ a.out
ABC
Was this answer helpful ?
More Questions on This Topic :
Question 7.
What is a array?
....
Submit Solution