Answers for "structure in c programming"

C
1

C program structure

pre-processor directives
global declarations

main()
{
    local variable deceleration
    statement sequences
    function invoking
}
Posted by: Guest on August-28-2021
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