Under ISO C11 semantics, what is the correct classification of the following…

PYQ Infosys Hiring Test 2025

Under ISO C11 semantics, what is the correct classification of the following program's behavior?

#include <stdio.h>

int main(void)
{
    printf("%nxy");
    printf("%bxy");
    printf("%rxy");
    return 0;
}
  1. A.

    Nothing gets printed

  2. B.

    Error

  3. C.

    Undefined behaviour

  4. D.

    %nxy%bxy%rxy

Attempted by 129 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…