Monday, March 22, 2010

60

Predict the output:
int main()
{
int i=2,b=24;
printf("%d");
return 0;
}

Output:
24
Logic:
%d will returns the Current Garbage value.
24 is stored at last so 24 will be in garbage.

0 comments:

Post a Comment