HOME | LAB PROGRAMMING | RATIONAL ROSE DIAGRAM | COMPUTE GRAPHICS | CLASS DIAGRAM | NETWORK PROGRAMING | BEST OF THE SITE

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 .

0 comments: