?
What will be the output of the program?
What will be the output of the program?
#include<stdio.h>
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
#include<stdio.h>
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
Answer & Solution
Correct Answer:
Option
B
Since the #define replaces the string int by the macro char.
So, here i is a variable of type char and not int.
Join the Discussion
Login to post a comment or share your explanation.
Login