Back to Multiple Choice Quiz
Array and Sizeof
C quiz · Question 4What is the output of this code? (Assume int is 4 bytes)
Code
1#include <stdio.h>23int main() {4 int arr[] = {1, 2, 3, 4, 5};5 printf("%lu\n", sizeof(arr) / sizeof(arr[0]));6 return 0;7}