What is the output of the following C program? #include <stdio.h> #define…

TCS · 2024

What is the output of the following C program?

#include <stdio.h>

#define prod(a,b) a*b

int main()
{
    int x=3,y=4;
    printf("%d",prod(x+2,y-1));
    return 0;
}
  1. A.

    10

  2. B.

    20

  3. C.

    15

  4. D.

    0

Attempted by 312 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tcs Ignite Smart Hiring

Loading lesson…