1.

1. How many bytes the array: float A[10]; allocates(a)20 (b)10 (c)40 (d)50​

Answer»

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



Discussion

No Comment Found

Related InterviewSolutions