Professional Documents
Culture Documents
Unit 3: Functions
● Introduction to functions
● Recursion.
Unit 4: Strings
● String functions
● Nested structures
● Array of Structures
1) Write a program to print the merit list of student details along with grade pass/fail which
has provision of 5 marks grace if student fails using Structures
2) Write a program to create student marksheet for PCM marks using Structure within
Structure, also use Sort function to sort the marks in an ascending order
3) Explain following functions with proper example.
a) strcmp( ) b) strcat() c)gets() d) strcpy e)strrev()
4) Compare and contrast Structure and Union with examples
5) Explain precompiled directives in C
6) Explain different storage classes in C
7) Write a program to implement Union
8) Write a program for interchanging the values of two variables using functions
9) Explain with example Call by value and Call by reference with respect to Functions
10) Write a program to calculate factorial of a number using Function
11) Write a program to using functions to evaluate following expression
[T]=([A] + [B])T
13) Write a program to check whether the given string is palindrome or not
---------------------------------------------------------------------------------------------------------------------