P

Prashant • 1.36K Points
Master

Q. Determine Output

Code:
#define int char
void main()
{
      int i = 65;
      printf("sizeof(i)=%d", sizeof(i));
}
  • (A) sizeof(i)=2
  • (B) sizeof(i)=1
  • (C) Compiler Error
  • (D) None of These

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics