Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 13

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 126

Answer:

#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

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 13 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: