Tuesday 19 March 2013

i = abc();


main()
{
 int i;
 i = abc();
 printf("%d",i);
}
abc()
{
 _AX = 1000;
}
Answer:
1000
Explanation:
Normally the return value from the function is through the information from the accumulator. Here _AH is the pseudo global variable denoting the accumulator. Hence, the value of the accumulator is set 1000 so the function returns value 1000.


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment