Thursday 14 March 2013

#define int char


#define int char
main()
{
    int i=65;
    printf("sizeof(i)=%d",sizeof(i));
}
Answer: sizeof(i)=1

Explanation: Since the #define replaces the string  int by the macro char


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment