CAT I Programming in C QP (AIML and IT)
CAT I Programming in C QP (AIML and IT)
7 a. Explain the concept of pass by value and pass by reference .Write a 13 CO3 K2
C program to swap the contents of two variables using pass by
reference.
(OR)
7 b. What is pointers? Write down below concepts in pointers 7 CO3 K2
(i)Pointer arithmetic
(ii)Pointer operators 6 CO3 K2
PART - C ( 14 × 1 = 14 Marks)
8 a.(i) What is structure? Write down the syntax and example for 7 CO4 K2
Structure declaration and initialization.
(ii) Explain the concept of nested structure and self-referential
7
structure.
(OR)
Explain the
8 b.(i) 14 CO4 K2
(ii)
following with
suitable diagram.
i. Sparse
interactions. (6)
ii. Parameter
sharing. (7)
Explain in detail about the dynamic memory allocation processes
and list memory allocation and deallocation functions.
Explain insertion and Deletion in linked list.