LogiQuest
Back to Typedef
7

What will be the output of the program?

#include <stdio.h>
typedef int Arr[3];
int main(void) {
    Arr a = {1, 2, 3};
    printf("%zu\n", sizeof(a) / sizeof(a[0]));
    return 0;
}
Medium

Discussion (0)

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

Log in to join the discussion.