C++ Program to Store and Display Information Using Structure - safetxt
avatar
C++ Program to Store and Display Information Using Structure

xcode 649 8th Aug, 2021

C++ 1.05 KB
Loading Please wait...
Description

This program stores the information (name, roll and marks) of 10 students using structures. To understand this example, you should have the knowledge of the following C++ programming topics: C++ Arrays C++ Structures In this program, a structure, student is created. This structure has three members: name (string), roll (integer) and marks (float). Then, we created a structure array of size 10 to store information of 10 students. Using for loop, the program takes the information of 10 students from the user and displays it on the screen.


Recent Pastes

Please disable your adblock and script blockers to view this page