engineering computer science MCQ #2153

What is the result of the expression `sizeof(arr) / sizeof(arr[0])` for an array `int arr[5]`?

engineering computer science MCQ #2153

  1. Question 1

    Q1. What is the result of the expression `sizeof(arr) / sizeof(arr[0])` for an array `int arr[5]`?

    • A) 4
    • B) 5
    • C) 20
    • D) 1

    Answer: 5

    Explanation: This expression calculates the number of elements in the array. NET computer science MCQs often test this core concept.