Computer Programming Utilization (2110003) EC Division: Assignment - 2
Computer Programming Utilization (2110003) EC Division: Assignment - 2
Date 13/10/19
EC Division
Assignment 2
Note: Submit the assignment in separate notebook.
Dead line for this Assignment is 20/10/16.
1.
2.
3.
4.
5.
6.
7.
float
a, b, c, x, y, z;
a = 9;
b = 12;
c = 3;
x = a - b
y = a - b
z = a -(b
printf("x
printf("y
printf("z
/
/
/
=
=
=
3 + c * 2 - 1;
(3 + c) * (2 - 1);
(3 + c) * 2) - 1;
%f\n", x);
%f\n", y);
%f\n", z);
(b)
main()
{
int a, b, c, d;
a = 15;
b = 10;
c = ++a b++;
printf("a = %d b = %d
c = %d\n",a, b, c);
d = b++ ++a;