Ask Question
23 February, 16:19

Write C code to define a structure called date that has three fields day, month, year, all of which are ints.

+5
Answers (1)
  1. 23 February, 16:56
    0
    The code to define a structure with the characteristics given is:

    struct date {

    int day;

    int month;

    int year;

    };

    Explanation:

    First you have to declare your structure using a data type struct (first line) and the name of the structure, inside brackets you define all the members of the structure and the type of each one following the next pattern:

    struct name_struct {

    type item1;

    type item2;

    / * ...

    };

    Finally we get into the correct answer:

    struct date {

    int day;

    int month;

    int year;

    };
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write C code to define a structure called date that has three fields day, month, year, all of which are ints. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers