DEV Community

Dhanashree Rugi
Dhanashree Rugi

Posted on • Edited on

5 3

Puzzle-3

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

Comment the output in the below comment section.

#include <stdio.h>
struct student {char name[20]; int age;};
int main()
{
    struct student stu1 = {"anita", 10}, stu2 = {"anita", 20};
    if(stu1 == stu2)
       printf("Same");
    else
       printf("Not same");
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay