LogiQuest
Back to Const
4

What will be the output of the program?

#include <stdio.h>

int main(void) {
    const int n = 5;
    int arr[n];
    printf("%zu\n", sizeof(arr) / sizeof(arr[0]));
    return 0;
}
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.