Single Choice Not Set

QWhat is the output of this C code?

#include<stdio.h> 
void main()
 {
	int a = 5;
	int b = ++a + a++ + --a;
	printf("Value of b is %d", b);
 }

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

Choose the Best Option

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

  • A Value of x is 15
  • B Value of x is 16
  • C Undefined behaviour
  • D Value of x is 21
Correct Answer

Explanation

Undefined behaviour

Share This Question

Challenge a friend or share with your study group.