{}
BLACK NOVEMBER
Get 66% off PRO
Are you struggling to build your coding confidence or land your first job?
Fast-track to your first pay-check.
Start PRO
Start PRO
BLACK NOVEMBER
Get 66% off PRO
Are you struggling to build your coding confidence or land your first job?
Fast-track to your first pay-check.
Start PRO
Start PRO
run-icon
main.c
#include<stdio.h> #include<stdbool.h> int main() { typedef struct dates { int day; int month; int year; }dates; dates a,b; a.day=9; a.month=3; a.year=2005; b.day=16; b.month=10; b.year=2005; bool flag=true; if(a.day!=b.day) flag=false; if(a.month!=b.month) flag=false; if(a.year!=b.year) flag=false; if(flag==true) printf("the dates are equal"); else printf("the dates are not equal"); // printf("%d\n",a.day); // printf("%d\n",a.month); // printf("%d\n",a.year); // printf("%d\n",b.day); // printf("%d\n",b.month); // printf("%d\n",b.year); // }
Output