MCS 011june 13
MCS 011june 13
MCS 011june 13
Term-End Examination
June, 2013
(i) Double
MCS-011 1 P.T.O.
(e) Write a program segment to generate the ' 6
following pattern using "for" and
"while loop"
*
**
***
****
ab4c2 — d
(i) m—n
MCS-011 2
3. (a) Write a program to find out square and cube 6
of given number using macros.
(b) What is # define preprocessor in C. How it 4
is implemented and used in C ?
(c) What is a string ? Write a function in C to 10
convert lower case letters to upper case
letters in a given string without using
strupp ?
MCS-011 3