What will be the output of the following C Programming code: void main() { int…

PYQ UGC NET 2025

What will be the output of the following C Programming code:

void main()
{
    int *i, a = 12, b = 2, c;
    c = (a = a + b, b = a / b, a = a * b, b = a - b);
    i = &c;
    printf("%d", --(*i));
}
  1. A.

    91

  2. B.

    90

  3. C.

    98

  4. D.

    92

Attempted by 227 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…