BCA 271 OOPS Lab Practical List
BCA 271 OOPS Lab Practical List
4. Structures
Write a Program to construct a
structure called employee that
contains two members, employee
number of type integer & employee
compensation of type float. Now ask
the user to fill this data for three
employees, store it in three variable
of typed employee & then display the
information for each employee.
5. Functions
WAP to create a function init()
having following parameters id,
name, course. Pass parameters to this
function through user & if user does
not give parameters provide default
value to id as 1 & name as “abc’.