Learners Only

Showing posts with label macro. Show all posts
Showing posts with label macro. Show all posts

Monday, 21 November 2011

Predict the output or error(s) for the following:

#define square(x) x*x

main()

{

int i;


i = 64/square(4);


printf("%d",i);


}

Answer:

64


Explanation:
Read more »
Posted by Unknown at 18:19 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C-Language, Campus Preparation, macro, priority

Sunday, 30 October 2011

Predict the output or error(s) for the following:

#define int char

main()

{

            int i=65;

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

}

Answer:

sizeof(i)=1

Explanation:
Read more »
Posted by Unknown at 08:00 1 comment:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C-Language, Campus Preparation, macro, Viva Voce
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2013 (42)
    • ▼  March (1)
    • ►  February (21)
    • ►  January (20)
  • ►  2012 (94)
    • ►  December (6)
    • ►  November (7)
    • ►  October (10)
    • ►  August (2)
    • ►  May (2)
    • ►  March (11)
    • ►  February (29)
    • ►  January (27)
  • ►  2011 (189)
    • ►  December (23)
    • ►  November (76)
    • ►  October (80)
    • ►  September (10)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.