- 1

How are[2]=42, explain

24th May 2017, 2:34 PM
Ronit Choudhury
Ronit Choudhury - avatar
5 Answers
+ 3
are[0] = 10; are[1] = 1192131; are[2] = 42; You can put any number at are[x] Where x is index of array. So print arr[0]; // output is 10 print arr[1]; // output is 1192131
24th May 2017, 2:45 PM
Paweu
Paweu - avatar
+ 2
Which language are you talking about?
24th May 2017, 4:20 PM
Paweu
Paweu - avatar
+ 2
https://code.sololearn.com/c1ILcu3i39o3/#cpp Check it out. cout<<arr[1]; //prints value cout<<&arr[1];//prints address
24th May 2017, 4:34 PM
Paweu
Paweu - avatar
- 2
it will provide you address of your array value...not value of you array
24th May 2017, 4:01 PM
Zeeshan Salam
Zeeshan Salam - avatar
- 2
all
24th May 2017, 4:27 PM
Zeeshan Salam
Zeeshan Salam - avatar