
13-7
Structure and Union
13.4 STRUCTURE WITHIN STRUCTURE
We can take any data type for declaring structure
members like int, oat, char. In the same
way, we can also take objects of one structure as a
member in another structure. us, a structure within
a structure can be used to create complex data appli-
cations (see Figure 13.2). e syntax of the structure
within the structure is as follows.
structtime
{
intsecond;
intminute;
inthour;
};
struct t
{
intcarno;
structtimest;
structtimeet;
};
struct t player;
13.5 Write a program to read and display the car
number, starting time and reaching time.
Use structure within structure.
FIGURE ...