πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) p=1 q=2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate