What will be the output of the program ? int main() { float arr[] = {12.4,…

PYQ Hexaware Hiring Assessment 2024

What will be the output of the program ?

int main()

{

float arr[] = {12.4, 2.3, 4.5, 6.7};

printf("%d\n", sizeof(arr)/sizeof(arr[0]));

return 0;

}

  1. A.

    4

  2. B.

    5

  3. C.

    6

  4. D.

    7

Attempted by 969 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…