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

Infosys · 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 99 students.

Sign up free to check your answer

Sign up free

Explore the full course: C Language

Loading lesson…