1. How many bytes the array: float A[10]; allocates(a)20 (b)10 (c)40 (d)50
Answers
Answered by
1
Answer:
Size of float = 4 bytes
Array A contains 10 elements.
So, size of float A[10] = 4 * 10 bytes = 40 bytes
Therefore, the correct option is (c) 40
More information:
Data types Sizes in bytes
int 4 bytes
float 4 bytes
double 8 bytes
long double 10 bytes
char 1 byte
Similar questions