Professional Documents
Culture Documents
flowchart and then write a program in C to convert a given stdng to lower case. (b) _ (c) Wdte an algorithm and program in C to generate fibonacci series. Use recursion. Draw a flowchart and wfite a program in C to calculatethe number of vowels in a given string. 10 10
MCS-o1 1
P.T.o.
(d)
'array of pointers' ? Write a What do you mean by program in C to calculate the difference of ihe corresponding elements of tr,vo arrays of integers of same size.
10
2.
to find the smallest number among 3 given numbers. to find the factorial of a given number N.
What are the differen-ies"-libtwden stmch.rre and union ? Give one illustrative example of usage o{ the union.
3.
MCS-Or 1
4.
(a)
Write a program which reads a file and counts the number of lines and words in the file, assumingthat a line can contain at most 80 characters. g 6 Give differences betvveen r (i) (ii) Sequential and Random Access files Global varlable and Lncal r/adable
(b)
(c)
2 4 7
3 5 8 9 6 1 0
11 12 13 14 15 16 17 18 19 20 2l
5, (a) Write a program in C to find the differencebetween two matricesof size (3 x 3). Write a program in C to sort a given list of numbers using bubble sort. Draw corresponding flowchart also. Explain meaning of following prototypes and mention return data type of each of-them : (i) (ii) int ('0 (char-); int .f (charJ;
7 g
(c)