LogiQuest
Back to Structures, Unions, Enums
16

What will be the output of the program?

#include <stdio.h>
struct Date { int d, m, y; };
int main(void) {
    struct Date t = {.y = 2024, .d = 15};
    printf("%d %d %d\n", t.d, t.m, t.y);
    return 0;
}
Medium

Discussion (0)

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

Log in to join the discussion.