Define function and sizeof operator

#define int char
main()
{
int i=88;
printf(“sizeof(i)=%d”,sizeof(i));
}
Tutorial answer:1
Debugging solution:Since #define change the string int by char.
Char it is no of bytes is one .

Post a Comment

0 Comments