English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How many bytes of memory would the following array occupy?

int[ ] myGrades = {72, 85, 91, 81};

2006-12-12 06:56:55 · 1 answers · asked by Christina 2 in Computers & Internet Programming & Design

1 answers

The answer is dependent on what type of microprocessor/compiler you are using. I am assuming you program is using 32-bit int which is pretty much the standard. since an int = 32bit = 4 byte.

myGrades occupies 16 bytes of memory.

2006-12-12 07:05:33 · answer #1 · answered by idawazoo 2 · 1 0

fedest.com, questions and answers