A

Admin • 833K Points
Coach

Q. What is the output the program?

Code:
int main()
{
register a=80;
auto int b;
b=a;
printf("%d ", a);
printf("%d ", b);

return -1;
}
  • (A) Compiler error. You can not assign register value to int variable.
  • (B) 80 80
  • (C) 80 0. Register value can not be copied.
  • (D) Compiles, but output is none.
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.