Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2025 Set 2
Questions

Q23

NAT1 mark
int x=126,y=105;
do {
    if(x>y) x=x-y;
    else y=y-x;
} while(x!=y);
printf("%d",x);

The output of the given C code segment is _________. (Answer in integer)

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.