adplus-dvertising
frame-decoration

Question

What will be output for the following code?
#include <stdio.h>
int main()
{
    double a = 5 % 3 & 4 + 5 * 6;
    printf(""%lf"", a);

}

a.

2

b.

30

c.

2.000000

d.

Run-time error

Answer: (c).2.000000

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output for the following code?