Even if we consider it as 4D Array in actual implementation it is stored linear fashion, as shown in the highlighted part. Hope it may help :)
64.3k questions
77.9k answers
244k comments
80.0k users