Learners Only
Showing posts with label
lifetime
.
Show all posts
Showing posts with label
lifetime
.
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 »
Older Posts
Home
Subscribe to:
Posts (Atom)