DSC-3 2932811101 Fundamental of Computer Programming
DSC-3 2932811101 Fundamental of Computer Programming
]
Your Roll No....
P.T.0.
8638
(d) What isthe difference between exit-controlled and
entry conttolled loops?
) l e nccd t0 MCreaNC he STZe of an alread..
allocated artay dynamically, How will ue.
avvomphsh this task? Give an example.
) lN dtlerences betwecn arrays and structures.
(3x6=18)
a) What do you understand by preprocessor directive?
Eplain #define and # include preprocessor
directives through a programming example.
(b) Explain basic data types available in C? Write a
C program to compute their size. (9x2=18)
(a) Write a C program to find the second largest
element in an array.
(b) What do you understand by recursion in C? What
value does the call num(5) return, where num is
defined as follows:
int num(int n){
if (n == 0)
return 1;
(9x2=18)
8638 3
#include stdio.h
void main()
int *ptri
ptr &age;
(9x2=18)
5
(a) Implement a C program to open a pre-existing file
and add information at the end of file. Display the
contents of the file before and after appending
the information to the file.
P.T.0.
8638 4
(400)