Join Examsbook
2041 0

Q: What would be the output of the following program? # define SQR(x) (x * x) main() {     int a, b = 3;     a = SQR ( b + 2 );     Printf ("\n %d ", a ); }

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

11 Because, on preprocessing the expression becomes  a = ( 3 + 2 * 2 + 3),  as Ist preference is multiply & then addition, it evalvates as(3+ 2 * 3 +2) = (3+6+2)=11.

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully