Report Bug

Qus

What will be the output of the following code segment?

int a = 100, b = 74;
if (a++ > 100 && b++ > 200)
	printf("High values with a = %d b = %d\n", a, b);
if (a++ < 100 || b++ < 200)
	printf("Low values with a = %d b = %d\n", a, b);
Qus

What will be the output of the following code segment?

int a = 100, b = 74;
if (a++ > 100 && b++ > 200)
	printf("High values with a = %d b = %d\n", a, b);
if (a++ < 100 || b++ < 200)
	printf("Low values with a = %d b = %d\n", a, b);


A. High values with a = 101 b = 74
B. Low values with a = 102 b = 75
C. High values with a = 102 b = 75
D. Low values with a = 101 b = 74


Solution
B. Low values with a = 102 b = 75



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad