the function main( ) then the function display( ) does not know the identity of the data type, structure
variable emp, because in main( ) it is treated as a local declaration. To make it global, it is
compulsory to declare the structure struct Employee outside the main( ) function. As you pass an array
of basic data types, you can pass an array of structures to functions. In this you will use the same
notation as you have used in passing an array of basic data types.
Do'stlaringiz bilan baham: