Huawei Company Programming Database

What will be output if you will compile and execute the following ccode?
#define call(x,y) x##y
void main()
{
int x=5,y=10,xy=20;
printf("%d",xy+call(x,y));
}
(A) 35
(B) 510
(C) 15
(D) 40
(E) None of above

Read Solution (Total 2)

Huawei Other Question

There are 2 pots each filled with water and milk respectively. Some amount of milk is poured into water pot and then the some amount of mixture in water pot is poured into milk pot. which is true? A is twice as efficient as B and B is thrice as efficient as C, who can finish a job alone in 24 days. If A, B and C work on alternate days with A starting first, in how many days will the job finished?