Is it possible to have an array with int values and int references?
Is there any other way to have an array arr
such that when you print arr[1]
it always prints the value of arr[0]
(without having to update arr[1]
when arr[0]
is modified) ?