Multiple choice

An array has 10 elements. The fifth element is stored at a location in memory address, 2008. If the array is of data type ”long double”, what will be memory address of the first element?

  1. 1968

  2. 1976

  3. 1992

  4. 1972

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The data type “long double” needs 10 bytes to store an element, and array elements are stored in sequential memory address. If 5th element address is 2008, then 1st element will be at address 2008-10-10-10-10 Or 2008 - 40 = 1968. Hence, option (1) is correct.