A

Admin • 833K Points
Coach

Q. What is the output of this program? if input a is 1 and b is 2

Code:
#include <stdio.h>
int main()
{
int a, b;
printf("%d", scanf("%d %d",&a,&b));
return 0;
}
  • (A) 1
  • (B) 2
  • (C) runtime error
  • (D) compile time error
  • Correct Answer - Option(B)
  • Views: 18
  • 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.