Question Bank: Programming in ‘C’ (9017) Class: FYIF Chapter No. 04 Functions and Structures Summer 2007: Marks = 12 1. Define function prototype. 2 2. Declare and define a structure employee having member variables as emp_id, emp_name & salary. 2 3. Explain with example: structure initialization and declaration. 4 4. Write a program to declare the structure student having member variables roll_no and name. Accept data for three students and display it. 4 Marks = 12 Winter 2007: 1. Give the syntax of declaring structure. 2 2. Define function. 2 3. 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. 4 4. Declare a structure ‘book’ having data members as title, author and price. Accept this data for one structure variable and display accepted data. Write a program. 4 Other: 1. Explain recursion with example 2. State types of the functions. 3. Describe the use of static and extern variables. 4. Explain the meaning of register and auto storage classes. 5. Define scope, lifetime & visibility of variables. 6. Differentiate structure and array with example. 7. Give syntax of declaring a function. 8. Define global and local variables.
CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)
Marks 4 2 4 4 2 4 2 2