What will be the output of the following C code?
#include < stdio.h >
#define foo(m, n) m ## n
void myfunc();
int main()
{
myfunc();
}
void myfunc()
{
printf(“%d\n”, foo(2, 3));
}
a) 23
b) 2 3
c) Compile time error
d) Undefined behaviour
Answer: a
Related Posts
In a serial port interface, the INTR line is connected to _____
The standard used in serial ports to facilitate communication is _____
The data transfer in UART is done in ______
The key feature of UART is _____
UART stands for ________
_____ to increase the flexibility of the serial ports.
The double buffer is used for _________
Join The Discussion