C Plusplus
C Plusplus
1. C with Classes.
2. Struct
a. Define collection of variables organized
b. Struct Date
{
Short int month;
Structure
Short int day; Members
Short int year;
};
c. Doesnt reserve memory.(do not create any variables)
d. Only defines format of structure for later use.
e. C++ improvement
Date date_hired;
3. Union
a. Defines a memory address shared by all of its data members.