,
Share with your friends 

c language programming

0 ratings Views 126 
Author: vikas_b6a788d7 (vikas saini)  View Profile |  View other solutions by this author

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

Login to rank it

Report


Advertisement