Attempt any Eight questions.
[8*5=40]
4.
What is recursion? Write a program to find the factorial of a given integer using recursion. [5]
5.
What are conversion specifiers? Explain the basic structure of a C program. [5]
6.
Explain nested if else ladder with suitable example. [5]
7.
Explain structure of for loop. Write a program to reverse a number entered by user. [5]
8.
What is DMA? Write a program to read N numbers and find largest and smallest number using DMA. [5]
9.
Why data file is needed? Write a program to write N numbers in file 'number.txt' and then read it and display only even numbers. [5]
10.
List out different operators in C. Explain Logical and relational operator. [5]
11.
What is pointer? Explain the similarity between array and pointer in brief. [5]
12.
Write short notes on: a) Macro Write short notes on: b) Opening and closing file [2.5+2.5]