Ask Question
16 April, 19:00

Write a code to define a structure named student, which includes name, student number and email address

+4
Answers (1)
  1. 16 April, 20:09
    0
    Hi!

    I will write the code on C.

    struct student / /define the struct on C.

    {

    char name[50]; / /define an array of char for name.

    int number[15]; / /define an array of int for number.

    char email[50]; / /define an array of char for email adress.

    }

    Explanation:

    The general syntax for structure in C is:

    struct structName

    {

    data-type structMember1;

    data-type structMember2;

    data-type structMember3;

    data-type structMember4;

    };
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a code to define a structure named student, which includes name, student number and email address ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers