Computer Science, asked by poonams7408, 6 months ago

What will be the size in bytes of the array xyz [12] of int type and pqr[15] of char type?​

Answers

Answered by kannabunny1
0

Explanation:

in 64 bit processor:

1)one integer value takes 4 bytes that's why in the first integer array occupies 12×4=48bytes memory

2)one character takes 1 byte so, in the character array of size 15 occupies 15×1=15bytes memory

in 32 bit processor:

1)one integer value takes 2 bytes that's why in the first integer array occupies 12×2=24bytes memory

2)one character takes 1 byte so, in the character array of size 15 occupies 15×1=15bytes memory

Similar questions