A

Admin • 828.03K Points
Coach

Q. What is the output of this program?

Code:
void main()
{
int p, q, r, s;
p = 1;
q = 2;
r = p, q;
s = (p, q);
printf("p=%d q=%d", p, q);
}
  • (A) p=1 q=1
  • (B) p=1 q=2
  • (C) p=2 q=2
  • (D) Invalid Syntex
  • Correct Answer - Option(B)
  • Views: 11
  • 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.