What if we don't use &
after int
or auto
? Can we write the loop like
for(int i:a)// here a is an array
{
...
}
What would be the difference if we use &
and if we won't.
What if we don't use &
after int
or auto
? Can we write the loop like
for(int i:a)// here a is an array
{
...
}
What would be the difference if we use &
and if we won't.