1. >GATE CS
  2. >Programming and Data Structure
Found 7  QuestionsSET DEFAULT
Selected Filters
    GATE CS Programming and Data Structure Programming in C
Exams
Years
Subjects
Topics

List of top Programming and Data Structure Questions on Programming in C asked in GATE CS

Consider the following C code segment:

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)

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

 Consider the following C program:

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

Consider the following C program:

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

Consider the following C program:

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

Consider the following C program:

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

Consider the following C program:

The output of the above program is __________ . (Answer in integer)

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C

Consider the following C code segment: 

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

  • GATE CS - 2025
  • GATE CS
  • Programming and Data Structure
  • Programming in C