Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
CPR MSBTE - Winter 2008

CPR MSBTE - Winter 2008

Ratings: (0)|Views: 18|Likes:
Published by api-3728136

More info:

Published by: api-3728136 on Dec 05, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

9017
0809-I
3 Hours / 80 Marks
Seat No.
Q.1 Attempt any EI GHT of the follow ing
16
a)What do you by structure? Give syntax of declaring it.
b)State four relational operators with its meaning.
c)Give the meaning of declaration int * ptr;
d)Declare and initialize the one dimensional integer array with 10 elements.
e)State four printf format codes.
f)
What is pointer?
g)Define recursion.
h)State the use of break statement.
i)
State the use and syntax of strlen( ) function.
j)
Explain conditional operator.
Q.2 Attempt any THREE of the follow ing:
12
a)Write a program to display the sum of all even numbers from one to \u2018n\u2019.
Accept \u2018n\u2019 from user.
b)What is function? Explain the need of function.
c)Explain else \u2013 if ladder with example.
d)State the arithmetic and logical operators with its meaning.
Q.3 Attempt any THREE of the follow ing:
12
a)Explain switch statement with flowchart.
b)What is the output of the following code?
void main( )

{
int i = 1, j = -1, k = 0, w, x, y, z;
w = i || j ||k ;
x = i && j && k ;
y = i || j && k ;
z = i && j && k ;
printf(\u00ab w=%d x=%d y=%d z=%d \u00bb,w,x,y,z) ;

}
c)Write a program using pointer to accept an integer array and print it in
reverse order.
d)Describe a method of declaring and initialization of two dimensional array
with example.
CPR \u2013 (W\u20192008)
- 1 -

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->