N
Naren
Hello,
Could anyone explain why I get an error when I compile this in MSVC6.0
compiler
#include <stdio.h>
#define PP 1,2,3,4
#define PP_Func(x,y,z,w) ( ((x)*1) + ((y) * 2) +((z) * 3) + ((w) * 4) )
#define PP_Val PP_Func(PP)
int main()
{
printf ("\n%d", PP_Val );
return 0;
}
Thanks in advance,
Regards,
Naren.
Could anyone explain why I get an error when I compile this in MSVC6.0
compiler
#include <stdio.h>
#define PP 1,2,3,4
#define PP_Func(x,y,z,w) ( ((x)*1) + ((y) * 2) +((z) * 3) + ((w) * 4) )
#define PP_Val PP_Func(PP)
int main()
{
printf ("\n%d", PP_Val );
return 0;
}
Thanks in advance,
Regards,
Naren.