Review Note

Last Update: 03/13/2024 10:56 AM

Current Deck: IIIT Nagpur::2nd Semester::5. Data Structures::L-03 Arrays

Published

Currently Published Content


Front

⭐ Given an array 
• int marks[8] = {99, 67, 78, 56, 88, 90, 34, 85}
• Calculate the address of marks[4] when the base address = 1000 when integer size is 2 bytes.
Back

Cont…
   Solution
    •   marks[4] = 1000 + 2(4 – 0) = 1000 + 2(4) = 1008

No published tags.

Pending Suggestions


No pending suggestions for this note.