Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
380 Programming and Data Structures
Explanation This program is the same as the previous one. Instead of initializing values, the values
are read using scanf () statements and structure variables. T h ep rin tf () statement displays the
contents of structure variables.
12.4 STRUCTURE WITHIN STRUCTURE
We can take any data type for declaring structure members like in t, flo a t, char etc. In the same way
we can also take object of one structure as member in another structure. Thus, structure within structure
can be used to create complex data applications. The syntax of the structure within the structure is as
follows.
struct time
{
in
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343