C Programming and Technical Programming Output

What will be the output of the following C program?

#include
void main(void)
{
int a=5, b, c,d,e;
e= (b=++a) + (c=a++) + (d=++a) ;
printf("%d, %d, %d, %d, %d", a,b,c,d,e);

return 0;
}

[1] 4, 5, 2, 3
[2] 8, 6, 7, 1
[3] 4, 6, 9, 2
[4] 8, 6, 6, 7

Read Solution (Total 13)

C Other Question

Which one of the following option best denotes the pair of operators, which are used in finding the BINARY equivalent of an integer number?

[1] ==, >>, &&
[2] ==, >>, &
[3] =, >>, ||
[4] ==, <>, <
Operator precedence decides the

[1] order of execution of arithmetic operators
[2] order of execution of logical operators
[3] order of execution of all the operators
available in C
[4] nature of bitwise operators only