#include <stdio.h>

typedef struct {
  int d, m, y;
} Date;

int sameDay(Date day1, Date day2);

void main ( ) {
  Date
    day1 = {25, 11, 2004},
    day2 = {25, 11, 2004};

  if (sameDay(day1, day2))
    printf("It is the same day\n");
  else
    printf("It is not the same day\n");
}

int sameDay(Date day1, Date day2) {
  if (day1.d != day2.d)
    return 0;

  if (day1.m != day2.m)
    return 0;

  if (day1.y != day2.y)
    return 0;

  return 1;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: