Single Choice Not Set

QWhat is the output of this C code?

#include<stdio.h> 
int main()
    {
        int a = 1, b = 2;
        a += b -= a;
        printf("%d %d", a, b);
    }

ID: #1215 Operators and Enums in C Language 1,013 views
Question Info
#1215Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1 1
  • B 1 2
  • C 2 1
  • D 2 2
Correct Answer

Explanation

2 1

Share This Question

Challenge a friend or share with your study group.