The output of the following program is


Loading

Practice C Preprocessor – 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);

}

What is the value of variable POLYGON?

			  		

Loading

Practice C Preprocessor – What is the value of variable POLYGON?


void main ()
{
int POLYGON, L, B;
L = B = 2;
POLYGON= (L = = B)? 1:0;
}

What is the output of the following program?


Loading

Practice Declarations and Initializations – What is the output of the following program?


void main()

{

int x,y, z;

x=2; y=1; z = 1;

if(x > y + z)

printf("Hello!
");

else if (x < y+ z)

printf ("Hi!
");

else

printf("Hey!
");

}