It might be a boring question! thanks!
Here\'s the code:
#include #include using namespace std; int main() {
The behaviour on reading uninitialised elements of an array is undefined. The compiler is allowed to do anything.
(All the elements of a can be read due to the brace initialisation, although in C++ you can write int a[5] = {};).
a
int a[5] = {};