0

This is my code, and I have provided the answer of the code as an image. Why is the answer not coming normally? For example I inputted six 1's. [1]: https://i.stack.imgur.com/TkS7r.png

int main()
{
int numbers [6] {};

for (int i = 0; i <= 5; i++)
{
    cout << "Enter number " << i + 1 << " : ";
    cin >> numbers [i];
}
cout << endl;


cout << numbers << endl;

cout << endl;
return 0;
}
Some programmer dude
  • 380,411
  • 33
  • 383
  • 585
Sharnav
  • 11
  • 1
  • 3
    Does this answer your question? [Printing an array in C++?](https://stackoverflow.com/questions/1370323/printing-an-array-in-c) – orhtej2 Oct 14 '21 at 08:14

0 Answers0