(Q)What is the output of C Program.? #include int main() { int a=0, b; a = (5>2) ? b=6: b=8; printf("%d %d",a, b); return 0; }
Answers
Answered by
1
Answer:
0, 6 is the answer of output
but I think there is some error
please mark me as brainliest
Answered by
0
8
C program
The C program is given as,
#include
int main()
{
int a=0, b;
a = (5>2) ? b=6: b=8;
printf("%d %d",a, b);
return 0;
}
In this program, the variable value is given as a = (5>2) and b=6: b=8
Now when we run the program, then we will get the output of the last entered value.
Hence, the output will be 8.
Similar questions