P209. Understand Macro without argument.
#include<stdio.h>
/*
A
#define
INTEGER int
void
main()
{
INTEGER i;
printf(" Size of i :
%ld\n",sizeof(i));
}
*/
/*
B
#define
PF printf
void
main()
{
PF("Hello\n");
}
*/
/*
C
#define
. ;//invalid statement
void
main()
{
printf("Hello\n").
}
*/
#define
int char
#define
char float
#define
float int
void
main()
{
int i;
char ch;
float f;
printf("%ld %ld
%ld\n",sizeof(i),sizeof(ch),sizeof(f));
}
Comments
Post a Comment