comawhite6181 comawhite6181
  • 21-08-2019
  • Computers and Technology
contestada

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

Respuesta :

mominetti
mominetti mominetti
  • 24-08-2019

Answer:

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;

};

Answer Link

Otras preguntas

The temperature of a lead fishing weight rises from 26∘c to 38∘c as it absorbs 11.3 j of heat. what is the mass of the fishing weight in grams? (the specific he
What is the term for the process that breaks down organic molecules and releases energy required for work?
Write each rational number as a terminating decimal. 1. 19/20 2. -1/8 3. 17/5
Is 4,400 is 10 times as much as 400
What is the best way to pay a bank fee?
Describe how to model -3x + 7= 28 with algebra tiles
The table shows the income and expenses for the school carnival. The school's goal was to raise $1,100. Did the school reach its goal? Explain.
the georges traveled 498.2 miles on 15.8 miles of gas how many miles per gallon did they get to the nearest tenth of a mile?
The atomic mass of carbon-13 is 13. It has six protons. How many neutrons does this isotope have?
list some activities that influence health-related fitness