Computer Science, asked by anshikasakhuja1122, 4 months ago

Q. Write The Output Of The Following :

(i) void main ( )
{
int a = 10, b = 6, c= = 7;
if (a>b a<c &&b<c)
cout << "welcome to c++",
else
cout << "Bye";

(ii) void main ( )
{
int a=4, b=6, c=3, d ;
d = a-c * 4+b%2 - (c/3) ;
cout << "d = " <<d ;
}

(iii) void main ( )
{
int a = 5, b ;
b = a+ + ;
+ + a ;
b + = a++ ;
cout < < " b = " << b<<end
<< "a = " <<a ;
}

(iv) void main ( )
{
int a = 4, b = 5, i,c ;
a>b? C= a + + : C = + + b ;
cout <<"c = " <<c<<endl ;
for (i = 0 ; i < = a ; i + = 2)
cout < < i < < " " < < endl ;
}

Answers

Answered by subgb98
2

Answer:

2} -9

3} b=12   a=8

4) c=6

   0

   2

   4

Similar questions