Q 1. What is computer define its characteristics and different type of computer generation.
Q2. Write notes on Input and Output device?
Q2. Write notes on Input and Output device?
Sr No.
|
Structure
|
Union
|
1
|
Structure is user defined data type
Which store a record with multiple value
|
Union is also a user defined data type
But only one member can be saved at a time
|
2
|
Separate space was allocated for each member of structure
|
A common space allocated for all member
|
3
|
All members can be initialized at ones.
|
Only one member can be initialized at a time.
|
4
|
Total memory allocated by a structure variable is equal to number of
member allocated space.
|
Space allocated equal to higher member allocated space.
|
5
|
One can provide and used all member
data simultaneously.
|
Only one member value can be read or write at ones.
|
6
|
Uses rate of structure is higher due to separate space allocation for
each member.
|
Uses rate is lower than structure due common space allocation.
|
7
|
You can updated previous value of any
member without losing other member data
|
If a member initialized and another attempt for change value of other
member lead loss of previous value.
|