Google

Wednesday, April 14, 2010

CSC202 Revision April 15


QUESTION:

(a) Use the typedef construct to define a type EMPLOYEE for a structure employee_record of the
following properties:
Name
Salary
Age
Address
Employee number

(b) Declare an array of 100 structures for EMPLOYEE

(c) Write a function that will display the employee name together with the employee
number whose age is between 40 to 50 years old.



QUESTION:

(a) create a link list structure with the following members:
name, age, next

(b)
Complete the following function to insert a node at the top of a linked list.
void insertnode(struct node **head)
{
}