Overview of C 39
The following statement illustrates the assignment of value 10 to the member mm of this nested
structure stud:
stud.dob.mm 5 10;
The above statement means: store value 10 in mm member of a structure dob which itself is a mem-
ber of structure variable called stud.
1.14 USER-DEFINED DATA TYPES
In addition to the simple data types such as integer, float, char, etc., C allows the users to declare
new data types called user-defined data types. These data types can be declared with the help of a key-
word called typedef whose general form is given below:
typedef <type> <new_type>
where typedef: is a reserved word.
<type>: is an existing ...