+2

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

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

10/13/2019 2:39:21 AM

ცᕱცᕱ Ꭹᕱᕱgᕱ

2 Answers

New Answer

+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)