Computer Science, asked by hiteshnegiaaya9046, 1 year ago

Write a structure specification in C++ for the record given below: Name_school– char (30) No_teachers – int (2) No_Students – int (5) Name of this structure will be SCHOOL

Answers

Answered by sailorking
32

The structure specification in C++ for the record given below : Name_school- char ( 30 ) , int ( 2 ) No_ Students......... is provided below :-

# include < iostream.h >

# include < conio.h >

struct record

{

       char name_ of_ the_ school [30] ;

        int no_ teachers ;

        int no_ students ;

}

void main ( )

{

             clrscr ( ) ;

            struct record a ;

             a . name_ of_ the_ school = " SCHOOL " ;

             getch ( ) ;

}

Answered by savvannaht047
0

Answer:

thanks for asking this question j reallh wanted the answer too

Similar questions