Unit-Iv Psc-Ug
Unit-Iv Psc-Ug
UNIT IV
Functions: Introduction – using functions – Function
declaration/ prototype – Function definition – function call –
return statement – Passing parameters – Scope of variables –
Storage Classes – Recursive functions.
Structure, Union, and Enumerated Data Types: Introduction –
Nested Structures – Arrays of Structures – Structures and
Functions– Union – Arrays of Unions Variables – Unions inside
Structures – Enumerated Data Types.
typedef: The keyword typedef is used for defining a new name for
an existing type.
Syntax: typedef existing_name new_name;
Example typedef float real;
where existing_name is any valid data type, and new_name is the
new name for this datatype. The new_name is in addition to, not a
replacement for, the existing type name. That is you can use either
the existing_name or new_name.