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
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
English,
3 months ago
Math,
3 months ago
World Languages,
3 months ago
Biology,
1 year ago
Math,
1 year ago