Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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));
}

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

Join The Discussion