Engineering king_CS3251 April 2024
Engineering king_CS3251 April 2024
Second Semester
int i;
i=1,2, 3;
printf ("%d", i);
return 0;
example?
7 How the nested structure can define in C, explain with syntax and
main)
typedef int a;
ab=2, c=8, d;
d= (b* 2) /2 +8;
printf ("%d", d);
explain with
11. (a) (i) Discuss the structure of C program in detail and
(8)
simple hello world program.
types of
(ii) Explain the terms variables and constants. How many
variables are supported by C. (8)
Or
Explain any
(b) ) What is purpose of Decision Control Statements in C?
such types with the general form of simple statements. (8)
two of
Explain
What are the functionalities of Preprocessor and Compiler?
(8)
with a simple example.
2 50895
12 (a) (i) Compare one dimensional and two dimensional array. Explain the
use of multi-dimensional arrays with syntax and example. (10)
(ii) Explain the four string functions with suitable examples. (6)
Or
13. a) (i) Write different types of functions with respect to return type
arguments and explain all types with syntax and example. (10)
(ii) Explain the header file that contains various methods for
performing mathematical operations. (6)
Or
(b) ) Discuss call by value and call by reference with some simple
program. (10)
14. (a) Explain in detail about the dynamic memory allocation process and list
memory allocation/deallocation functions. (16)
Or
15. (a) What is File Organization? Explain its types with pros and cons. (16)
Or
(b) (i) What is a File and list any five operations that can be performed on
a file. (8)
(ii) What are command line arguments in C? Explain with a suitable
program. (8)
3 50895