Académique Documents
Professionnel Documents
Culture Documents
1.
(a)
70
(b)
M C S . O 11
P.T.o.
(c)
Write a recursive function in 'C' that computes the factorial of a given integer. and explain the precedence of Logical and Relational operators in 'C'. List Arithmetic,
10
(d)
10
2.
(a)
Write an algorithm and draw flowchart to find whether a given string 51 is substring of another string 52. Write a program in 'C' language which accepts the enrollment number of a student as input and prints the name of that student. The program initially store information about should (name, the enrollment number) pairs of students in the form of a matrix.
10
(b)
10
3.
(a)
Write a program in 'C' language to display the names and seat numbers of all passengersof a bus in the form of a singly linked list. Use pointers. 10
(b) 4.
(a)
Explain any five functions of <stdlib.h> library. Write a program in 'C' that accepts a sentence 's' and a word 'wt as input. Now, the program should print the starting position of right-most occurr ence of '\A/' 's'. in
1A
10
(b)
Write a program in 'C' language that accepts the name of a file as input and prints those lines of the file which have the word 'this'.
10
MCS.OI 1
5.
(a)
language to convert a
10
add two
(b)
Write
a program in
'C'
language to
matrices.
10
M C S - 0 11
12,000