LogiQuest
Back to Typedef
8

What will be the output of the program?

#include <stdio.h>
typedef struct Node {
    int v;
    struct Node *next;
} Node;
int main(void) {
    Node b = {2, NULL}, a = {1, &b};
    printf("%d\n", a.next->v);
    return 0;
}
Medium

Discussion (0)

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

Log in to join the discussion.