Computer Science, asked by rohithchowdary2020, 7 months ago

Predict the output
#include<stdio.h>
int main()
{
int a=2, b=3, c=4;
if(b==2)
a=10;
else
c=10;
printf("\n a=%d \t b=%d \t c=%d", a,b,c);
return 0;
}​

Answers

Answered by nivethap1012
0

Answer:

a=2 b=3 c=10

Explanation:

if statement is not true (since b is 3 not 2)

it goes to the else part, and the value of c becomes 10

so finally the output will be printed as

a=2 b=3 c=10

Similar questions