0

if I type- int []={8,4,7,23} d[2]=1 will it override the old value?

1st Aug 2016, 5:14 PM
potato
potato - avatar
3 ответов
+ 4
Yes, it will return an error because you need to give your array a name. I assume you want your array name to be 'd'. But to answer your question, d[2] is currently 7. Writing d[2] = 1 will indeed overwrite that 7.
1st Aug 2016, 9:44 PM
Cohen Creber
Cohen Creber - avatar
- 1
hello peeps
4th Aug 2016, 3:41 AM
Devendra Sanghavi
Devendra Sanghavi - avatar
- 3
first of all it will give an error. no variable name.
1st Aug 2016, 5:55 PM
Shubhranil Chakraborty
Shubhranil Chakraborty - avatar