Computer Science, asked by geetarawat3676, 1 year ago

Write the output of the following questions
(a)
void main( )
{
int x;
x=5;
cout<<x++;
cout<<x;
cout<<++x;
}

(b)
void main( )
int a=4, b;
b = ++a;
cout<<b;
}

(c)
void main()
{
int a=5,b=2,c;
c=a/b;
if((c)>10)
cout<<"c is greater than 10";
else
cout<<"c is smallest than 10";
}

(d)
void main( )
{
int a=8, b=3, c=6, d;
d=a*b/c-a;
cout<<d;
}

(e)
void main( )
{
int p=3,q=2;
p=p%q;
cout<<p;
p=p%q;
cout<<p;
}

(f)
void main( )
{
float x=5,y=2
int result ;
result=x/y;
cout<<result ;
}

Answers

Answered by Varalakshmi2317
2

Answer:

a)6

6

5.

b)3 .

c)c is smallest than 10.

d)-4.

e)1.

f)2

Similar questions