DEV Community

Dhanashree Rugi
Dhanashree Rugi

Posted on

Puzzle-4

Can you guess the output without the help of code editor ?

Comment the output in the below comment section.

#include <stdio.h>
void func(struct tag v);
int main()
{
    struct tag
    {
        int i;
        char c;
    };
    struct tag var = {2, 'd'};
    func(var);
}

void func(struct tag v)
{
    printf("%d\n %c", v.i, v.c);
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)