Advertisements
Advertisements
प्रश्न
double x [ ]={2.5,4.5,5.5,6.4}; occupies ______ bytes.
विकल्प
16
4
8
32
MCQ
रिक्त स्थान भरें
Advertisements
उत्तर
double x [ ]={2.5,4.5,5.5,6.4}; occupies 32 bytes.
Explanation:
The array contains four elements: 2.5, 4.5, 5.5, and 6.4, each of type double. Since a double occupies 8 bytes, the total memory used by the array is 8 × 4 = 32 bytes.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Official Board
