Computer Science, asked by hhinagoharrana, 1 month ago

What is output of below program?
int main()
{
int a=10;
int b,c;
b = a++;
C = a;
cout<<a<<b<<c;
return 0;
}​

Answers

Answered by michaelgari032
2

Answer:

The Output will be: 111011

Explanation:

Let say

Firstly 'C' is not initialized in any way (Let me consider that as a typing error and I am taking 'c', which was declared )

The Output will be :

a = 10  //a value at start

b = a++ //so b = 10 a = 11 a is incremented after give b -> 10 values

c = a ; // so c = 11;

printed in this order

a --- b -- c

11 --- 10 --- 11

so together

111011

Please mark the brainliest

Similar questions