GATE CS 2025 (Afternoon) — Question 33

Programming in CData Types, Syntax, Control Structures, LoopsNAT1 markMedium

c
1int x = 126, y = 105;
2do {
3    if(x > y) x = x - y;
4    else y = y - x;
5} while(x!=y);
6printf("%d", x);
7
The output of the given C code segment is ________. (Answer in integer)
Practise the full 2025-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAWhat rank do your marks get?GATE score, likely All-India Rank and qualifying marks for your category.
Practise more on Data Types, Syntax, Control Structures, LoopsTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group