← Back to Question List
C Quiz #4
Array and Sizeof
What 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}