+ 6
How does this array function works here!!
https://code.sololearn.com/cjKGKCi1bFo9/?ref=app how does it outputs 5,0,16,0,-1 when input is 5 I got the answer thks to those who responded , very kind of you guys ❤️
6 Antworten
+ 4
thks Donna ,but sorry can you explain more deeply like how does it outputs value 5,0,16,0,-1 when input is 5
+ 2
Shiva thks
+ 1
by default array element values
x - assigned at running time
0
16
0
-1
+ 1
are[0] is assigned as 5 while you give input 5
other values are printed as common