C Programming :: C Preprocessor - Discussion
Home > C Programming > C Preprocessor > MCQs Questions Discussion
22 / 34
The output of the following program is
#define two (x) 2*x
#define ddouble (x) x + x
void main()
{
int num, sum, product;
num = 1;
sum = - two (num); sum = -(sum + 1);
product = - ddouble (num);
printf ("%d%d/n" ,sum,product);
}
#define two (x) 2*x
#define ddouble (x) x + x
void main()
{
int num, sum, product;
num = 1;
sum = - two (num); sum = -(sum + 1);
product = - ddouble (num);
printf ("%d%d/n" ,sum,product);
}
A0 0
B0 1
C1 1
D1 0
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!