Sometimes we may require to store the information of one entity in one group. But this information may consist of different variables of different data types. At this stage if we need to refer all variables with the same name, then we require to use the data type called as structure.
What is a structure in programming?
Syntax
struct struct_name
{
data members;
}variable name;
Structure is a small body which allows users to declare different variable of different data types and use them with the same name of structure.
EXAMPLE
struct student
{
int rollno;
char name[20];
}s;
VIDEO TUTORIAL
En este articulo:data members,structure,structure c++,structure data,structure engineering,structure example,structure in c,structure in programming,structure syntax,variable structure
Escrito por
Krish Advani
Administrador de ENGGDRCAOS. Canal dedicado especialmente a la formación del estudiante que aspira a ser ingeniero. Todos los videos son Ingles. Apasionado del universo Apple, estudiante de Ingeniería y Gamer por vocación.