Problem Solving Using C-2023
Problem Solving Using C-2023
393969
6
C 43145 (Pages : 2) Name.........................................
Reg. No.....................................
1
SECOND SEMESTER (CBCSS—UG) DEGREE EXAMINATION
APRIL 2023
1
B.C.A.
(2019—2022 Admissions)
1
Answer all questions.
Each question carries 2 marks.
Ceiling 20 marks.
6
1. What are the fundamental data types in C ?
1
3. What do you mean by pre increment and post increment operators in C ?
1
5. Explain any four I/O functions in C ?
1
10. What is union variable in C ?
6
12. What is the use of realloc() function in C ?
1 1
393969
Turn over
1
393969
6
2 C 43145
1
Answer all questions.
Each question carries 5 marks.
1
Ceiling 30 marks.
1
18. Compare and contrast Pointer to array and Pointer to structure.
6
Section C (Essay Type Questions)
1
The question carries 10 marks.
20. Explain the syntax and functions of different dynamic memory allocation functions available in C.
1
21. Write a C program to print the binary equivalent of a decimal number using a user-defined function
called ToBin().
(1 × 10 = 10 marks)
1 61
1
393969