Top

Discussion

What will be the output of the program?

#include

int main()
{
    int i;
    i = scanf("%d %d", &i, &i);
    printf("%d\n", i);
    return 0;
}

 

  • A.1
  • B.2
  • C.Garbage value
  • D.Error: cannot assign scanf to variable

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment