LogiQuest
Back to Typedef
2

What will be the output of the program?

#include <stdio.h>
typedef struct { int w, h; } Rect;
int main(void) {
    Rect r = {4, 5};
    printf("%d\n", r.w * r.h);
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.