#define int char

main()

{

int i=65;

printf("sizeof(i)=%d",sizeof(i));

}



#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); ..

Answer / susie

Answer :

sizeof(i)=1

Explanation:

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

Is This Answer Correct ?    90 Yes 11 No

Post New Answer

More C Code Interview Questions

what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }

6 Answers   CSC, IIIT,


How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

0 Answers  


write a origram swaoing valu without 3rd variable

2 Answers  


#include<stdio.h> int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } Output for this program is 64. can you explain how this output is come??

1 Answers  


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


Write a program to receive an integer and find its octal equivalent?

7 Answers  


Finding a number which was log of base 2

1 Answers   NetApp,


write a program to count the number the same (letter/character foreg: 's') in a given sentence.

2 Answers  


plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............

2 Answers   Wipro,


How to return multiple values from a function?

7 Answers  


why array index always strats wuth zero?

2 Answers  


main() { 41printf("%p",main); }8

1 Answers  


Categories