Ask Question
4 March, 15:33

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

+2
Answers (1)
  1. 4 March, 18:54
    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?
Find an answer to your question ✅ “Write a code to define a structure named student, which includes name, student number and email address ...” 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