array as rValue in assignment; while and for loops