Question

What will be the output of the program #include<stdio.h> int main() { int i; i = scanf("%d %d", &i, &i); printf("%d\n", i); return 0; }

  • 1
  • 2 (Correct Answer)
  • Garbage value

Answer is "2"

2 Answer and explanations

You don't need to login to post your comment
254
Bhuvna

please explain answer

227
Aditi

need help, explain answer

Post your answer

You don't need to login to post answer






Ask Question


Note: Options are optional, you can leave them blank