You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Each double uses up 8 bytes, so prices[] uses up 6*8 = 48 bytes together
for (inti=0; i<sizeof(prices)/sizeof(prices[0]); i++)
// As different elements in "prices" are the same data type, the size of each of them is the same
// To calculate how many times it has to loop: use "sizeof(prices) / sizeof(prices[0])", if we just use "sizeof(prices)" which is 48, it will loop 48 times