Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 84

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 82

Answer:

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.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 84 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: