P
PranjalMishra
I am confused about the code snippet given below.
int main(int argc, char** argv)
{
AA( main )
USENOT( argc );
USENOT( argv );
exit( 0 );
return;
}
whereas AA is defined as any one of the following based on some
condition
#define AA(a) ar[i++] = #a;
or
#define AA(a) printf(#a "\n");
or
#define AA(a) ;
ar is defined as
extern char *ar[];
USENOT is defined as
#define USENOT(x) (x=x)
1.Can somebody explain what's happening after entering the function
main in all the three cases of the values of AA.
2. what may be the USENOT's purpose.
int main(int argc, char** argv)
{
AA( main )
USENOT( argc );
USENOT( argv );
exit( 0 );
return;
}
whereas AA is defined as any one of the following based on some
condition
#define AA(a) ar[i++] = #a;
or
#define AA(a) printf(#a "\n");
or
#define AA(a) ;
ar is defined as
extern char *ar[];
USENOT is defined as
#define USENOT(x) (x=x)
1.Can somebody explain what's happening after entering the function
main in all the three cases of the values of AA.
2. what may be the USENOT's purpose.