What is an array? How array can be passed as function argument? Write a program to arrange an array having 10 integer numbers in ascending order using function.
Explain different control structures in C. Write a program in C to perform different arithmetic operations on two integers and display the result based on choice made by user using switch statement.
Differentiate between structure and union? Write a program to read employ id, name, post and salary of 20 employees and display detail of those employee whose post is "clerk".
Attempt any Eight questions
[8x5=40]What is recursion? Write a program to find the factorial of a given integer using recursion.
What are conversion specifiers? Explain the basic structure of a C program.
Explain nested if else ladder with suitable example.
Explain structure of for loop. Write a program to reverse a number entered by user.
What is DMA? Write a program to read N numbers and find largest and smallest number using DMA.
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.
List out different operators in C. Explain Logical and relational operator.
What is pointer? Explain the similarity between array and pointer in brief.
Write short notes on:
a) Macro
b) Opening and closing file