c language programming
|
|
|
Question / Problem
|
macro solution in c programming
|
Solution
|
|
#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
|
Applies to |
|
C
|
Rank It |
|