S
Sweta
Hi,
I have the following code -
#include <stdio.h>
#define VAR i
main()
{
int VAR;
VAR = 10;
printf("VAR = %d", VAR);
}
As of now, this code prints VAR = 10
I want to have the output as i = 10 i.e. the macro replacement should
be printed as string. Does anybody have any idea how we can do it? Do
we have something like #, ## for macros which do not have argument
list.
Thanks,
Sweta
I have the following code -
#include <stdio.h>
#define VAR i
main()
{
int VAR;
VAR = 10;
printf("VAR = %d", VAR);
}
As of now, this code prints VAR = 10
I want to have the output as i = 10 i.e. the macro replacement should
be printed as string. Does anybody have any idea how we can do it? Do
we have something like #, ## for macros which do not have argument
list.
Thanks,
Sweta