MCS 011 J11 Compressed
MCS 011 J11 Compressed
MCA (Revised)
Term-End Examination
June, 2011
sum = 0;
for(i=1; i <10; i++)
sum + = i;
Write an equivalent program segment using
(i) do - while
(ii) while
MCS-011 1 P.T.O.
(d) What is a syntax - error ? Give an example
of syntax error in a C - program.
MCS-011 2
4. (a) What is a file in C programming ? Explain 10
the use of fopen function in file handling.
Explain different mode in which a file can
be opened.
(b) What is a pointer ? Write a C program 10
using pointer to print the name and price
of the items sold in a retail shop on a specific
date.
MCS-011 3