Computer Programming
Computer Programming
)
(Common for All)
10088 : Computer Progromming : I B3 / I SCT4
P. Pages : 3 AT - 2052
Time : Three Hours ITTTIT; Max. Marks : 80
I a) Define algorithm with it's characreristics, draw flow-chan offinding the small€st number 1
amorg three numtrer.
oR.
b) what is the output of following prograh ifuser input Values as 88881398, 7?? 1
#irclude <stdio.h>
void main ( )
t
inta,b,c;
scanl1"% ld% ldo/r 3d" , &a, &b, &c) :
printf('suo = %d", a+b+c);
)
OR
OR
AT - 2052 I P,T.O
6, a) Whar will be the pdnted by each oflhe following code : 6
i) void main ( )
{
flo4tx= 123.41
if(x > I o0)
printfl "ooe") ;
if(x > 100)
printf( 'two" );
if(x > 200)
printf C&ree') ;
)
7. a) Writ€ a progran in C to rcad the matrix oforder nxn and obtain its tronspose. 7
_b) List ard explain different library firnction for string manipulation. 7
OR
8. a) Which are the differfit storage classes in C ? Explain with suitable examplo. 1
b) Write a program to find largesl and smollest nulaber in aray of ten ioteger nuDber. 1
9. B) What is pointer ? What kind of inforoation does the pointcr variable reprEsent ? ExplaiD
differ.dt uses of pointer.
AT - 2052 2
b) Explain pointer arithmetic with suitable examplc- 6
OR
i) Pointer to pointer
c) whal is the value ofa & b after following statement are executed. 3
int 'Pl, *P2, a, b:
Pl &a;
=
P2=&b:
*Pl = l5:
*P2:35 ;
*P2 - (rPl) ++-_ .
I l. a) Write a prograrn to copy the contain ofone lile to another usinS fputc and [8etc. 7
OR
AT - 2052 .l