Answers for "syntax of structure in c"

C
0

Structures in C

#include <stdio.h>
struct date 
{
        int day;
        int month;
        int year;
};
int main(void)
{
    struct date today;
    today.day = 1;
    today.month = 1;
    today.year = 2003;
    if (today.day==1 && today.month==1)
        printf(“Happy New year");
    return 0;
}
Posted by: Guest on November-24-2021

Code answers related to "C"

Browse Popular Code Answers by Language