Learners Only

Showing posts with label allocate. Show all posts
Showing posts with label allocate. Show all posts

Thursday, 1 March 2012

Frequently Asked Questions in Technical Round at MNCs like TCS, WIPRO, INFOSYS,..etc – 12

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


1)

int i=10;

main()

{

extern int i;


{


int i=20;


{


const volatile unsigned i=30;


printf("%d",i);


}


printf("%d",i);


}


printf("%d",i);


}

Answer:

30,20,10


Explanation:
Read more »
Posted by Unknown at 16:35 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: allocate, C-Language, const volatile unsigned, EXTERN, global variable, INFOSYS, innermost block, lifetime, MNCs, TCS, visibility, WIPRO
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.