Top

Discussion

What will be the output of the program?

#include
#define SQUARE(x) x*x

int main()
{
    float s=10, u=30, t=2, a;
    a = 2*(s-u*t)/SQUARE(t);
    printf("Result = %f", a);
    return 0;
}

 

  • A.Result = -100.000000
  • B.Result = -25.000000
  • C.Result = 0.000000
  • D.Result = 100.000000

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment