+ 5
What is a structure
Structure
5 odpowiedzi
+ 12
Structure is a user-defined datatype in C language which allows us to combine data of different types together. Structure helps to construct a complex data type which is more meaningful. It is somewhat similar to an Array, but an array holds data of similar type only.
Syntax:
struct structure_name
{
DataType variable 1
DataType variable 2
DataType variable 3
...
}structure_variables;
+ 7
It is like a record containing fields. Look in the C tutorial for examples.
+ 7
C and C++ structs are very similar.
+ 5
Structure is a group of variables of different data types represented by a single name ...
struct struct_name{
DataType Member1_name;
DataType Member2_name;
.....
};
+ 2
HTML-structure.