K. K. Wagh Polytechnic, Nashik \u2013 3
Question Bank: Programming in \u2018C\u2019 (9017) Class: FYI F
Chapter No. 04 Functions and Structures
Marks = 12
a) Define function prototype.
b) Declare and define a structure employee having
member variables as emp_id, emp_name & salary.
c) Explain with example: structure initialization and declaration.
d) Write a program to declare the structure student
having member variables roll_no and name. Accept
data for three students and display it.
Marks = 12
a) Give the syntax of declaring structure.
b) Define function.
c) Explain what is structure and array of structure.
Declare a structure with elements as roll_no and name.
Declare array of structure for 10 students.
d) Declare a structure \u2018book\u2019 having data members as
title, author and price. Accept this data for one structure
variable and display accepted data. Write a program.
Marks = 16
a) Explain function definition. Give syntax for function.
b) Give general form of structure and define a structure student having
member variables as roll_no, name and dob.
c) Write the output of following program. Take suitable input.
void large( )
printf(\u201cEnter values of a and b :\u201d);
printf(\u201clarge : %d\u201d,b);
printf(large : %d\u201d,a);
d) Define two structures date and account.
Date has members: day, month, year
Account has members as: acc_no, balance, dob
Assign initial values to them.
e) Declare a structure \u2018Book\u2019 having data members title, author and price.
Accept this data for one variable and display accepted result.
CPR \u2013 Question Bank Chapter 04
- 1 -