+ 1

What kind of numbers does this array outputs?

#include <iostream> using namespace std; int main() { int arr[10]; for (int x =0;x<10;x++){ cout << arr[x]<<endl; } return 0; }

13th Apr 2018, 1:06 PM
Shaitzu15
Shaitzu15 - avatar
4 odpowiedzi
+ 2
It outputs garbage values sitting in the (now) memory location which are now sad that you didn't assigned them a new value. Poor bytes... Shame on you!
13th Apr 2018, 1:24 PM
Alex
Alex - avatar
+ 2
Sorry :( I'll try to not repeat this again Alex
13th Apr 2018, 1:46 PM
Shaitzu15
Shaitzu15 - avatar
+ 2
Garbage valuee will be on output box
13th Apr 2018, 3:05 PM
ARIF ANSARI
ARIF ANSARI - avatar
0
you will get garbage values on console
18th Apr 2018, 2:58 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar