2. EE15 Rupali kirnapure
J D College Of Engineering & Management
B.TECH 1ST YEAR (2022-23)
Subject :-introduction to computer programimg
Branch :- Electrical Engineering
Topi c of presentation:-Structure
SUBMITED BY:-
3. STRUCTURE
•Structure is a mechanism for packing data of different types
into single unit. A structure is a convenient tools for
handling a group of logically related data items.
4. STRUCTURE DECLARATION
4
• Now, we have only created the format of a structure, but we still
did not declare any variable in which can store value. Thus there
is need to declare structure variable so that we can use the
structure members in the programs.
7. STRUCTURE VARIABLE
•For using the structure you need structure variable.
•Syntax of structure variable are as follow:
Void main()
}
struct structure name structure variable;
For eg:-
struct book b1;b2;b3;
8. ARRAY OF STRUCTURE
If we need the detail of the 100 books,then it is difficult to
declare 100 structure variable using the above two
method,but this problem can be solved by array declaration
of structure variables.We can declare array of structures just
like we declare array of integers or array of variable of any
other data type.
10. NESTED STRUCTURE
Nested structure in C is nothing but structure within
structure. > One structure can be declared inside other
structure as we declare structure members inside a
structure. >The structure variable can be normal structure
variable.