+ 2

How it works and prints 47 when i do it as printf("%d",arr[47]);

https://code.sololearn.com/c9894BA9COc5/?ref=app

13th Oct 2019, 2:39 AM
Joѕнυα
Joѕнυα - avatar
1 Réponse
+ 1
Baba Yaaga when you declare your array as a[47]=47, then it starts initialising veriables from index 47 That's why if you print a[47] gives 47. Also if you try to print a[48] then it will print 48(as it is initialised at 48th index)
13th Oct 2019, 3:35 AM
Arsenic
Arsenic - avatar