Attempt any Eight questions.
[8*5=40]
4.
What is the basic structure of a C program? Explain each part. [5]
5.
What do you mean by multi-dimensional array? Write program logic to add and display the sum of two m x n matrices. [5]
6.
Find errors (If any) in the following program and rewrite it. #define (studio,h) float main < > int m [ ] [ ] = 1,2,3,4; for(i=4,I>=0;i−−) for(j=0,j<4;j++); m[i] [j] = a[i][j] + b[i][j]; return 0. 0; [5] 7.
Write a program to generate the following pattern of Integers. [5] 8.
Write a C program to check whether a given string is palindrome or not. [5]
9.
What is pointer? Illustrate the use of a double pointer with suitable example. [5]
10.
Why file is used in programming? Explain different file opening modes. [5]
11.
Write short notes on: a) Macros Write short notes on: b) Null Pointers [2.5+2.5]
12.
How break statement is different from continue statement? Explain with suitable example. [5]