Question 4

· unclassifiedP · Verified PYQ

Find the output of the following code #include<stdio.h> int main () { int num; printf (“enter number” ); scanf (“%d”, &num); no = (num * 2) + 3 ; (no & 1 && printf (“odd”))printf (“even”)

return 0; }

  • A. Enter a number: Odd
  • B. Odd
  • C. Error : ‘no’ undeclared
  • D. Even

Answer: Option C

← Question 3Question 4 →
Report an issue with this question