What will be the output of the following C code? #include<stdio.h> int main()…

PYQ IBPS SO CRP SPL-XIV (2024)

What will be the output of the following C code?

#include<stdio.h>
int main() {
int a = 1;
a += 3;
printf("%d", a + a);
return 0;
}
  1. A.

    4

  2. B.

    6

  3. C.

    8

  4. D.

    10

  5. E.

    2

Attempted by 43 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…