A
asit
#include <stdio.h>
#define ADD(x) x + x + x
int main()
{
int a=5;
printf("%d",ADD(a++));
printf("\n");
getch();
return 0;
}
In the above problem, the output should be 18. But my gcc compiler
shows 15. Why ???
if it's UB, then tell me the reason ??
thank you
#define ADD(x) x + x + x
int main()
{
int a=5;
printf("%d",ADD(a++));
printf("\n");
getch();
return 0;
}
In the above problem, the output should be 18. But my gcc compiler
shows 15. Why ???
if it's UB, then tell me the reason ??
thank you