Saved Bookmarks
| 1. |
Write the structure definition to store name of the student, register number, class and Show how is the structure initialized? Give an example. |
|
Answer» struct student { int regno; char name[50]; char class[6]; }; Initialization is done at the time of declaration of a variable. For example student s2 = {100,"Dushyanth","IIA"}; |
|