[A] Point out the invalid variable names:
volley-ball
CRICKET
dog and the bone
chessandchecker
tenn.
[B] Point out the invalid 'C' constants:
369.123
0005
0xbc30
0Ydf60
0ztitt
-51e-31
[C] Convert the following equations into 'C' statements:
(i) Z= 8.8(a+b) 2/c-0.5+2a/(q+r)
(a+b) * (1/m)
(ii) X=-b+(b*b)+2-4ac
2a
(iii) R=2v+6.22(c+d)
g+v
[D] Find out the Outputs:
(1) main( )
{
printf("%d%o%x",72,72,72);
}
(2) main( )
{
int i=1,j=2,sum=0;
sum=sum+j;
j=j+i;
i=i*j;
printf("%d%d%d",sum,j,i);
}
(3) main()
{
float a=1, b=3;
int c;
c=b%a;
printf("%d",c);
}
(4) main( )
{
int p=500*500/500;
printf("g=%d",g);
}
[E] Write a program to interchange the contents of a and b. Two variables a and b contain values 2 and 5.
All the best..!! Get set go.. Next time we'll discuss the solution of Exercise-1.
Monday, June 2, 2008
Exercise-1
Labels:
exercise begins..
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment