CSF101 - Set 1 (Programming For Problem Solving)
CSF101 - Set 1 (Programming For Problem Solving)
(c) Explain the following terms with suitable example with respect to C language:
1- Identifier
2- Keyword
3- Formatted output function
(d) Write a C program to sort the elements of an integer array in descending order using any sorting technique.
[4 x 5= 20
I. User-defined Function
II. Function Prototype
uppercase alphabets into lowercase alphabets of a string without using strlwr ( ) function.
[2 x 10= 20
(b) Explain the structure of switch –case-default statement in C. Write a C Program to test whether a give
number n is even or odd using switch case statements.
(c) Create a structure to specify data of customer in a bank. The data is to be stored is: account number, name,
and balance. Assume maximum of 200 customers in the bank. Write a C program to perform the following
tasks.
I- Print the account number and name of each customer with balance below Rs 100.
II- Print the name of those customers whose account number is even.
[2 x 10= 20