Ask Question

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

+3
Answers (1)
  1. 26 February, 19:43
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers