Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. Determine the Final Output:

    void main()

    {

    printf("\nab");

    printf("\bsi");

    printf("\rha");

    }

  2. A.

     absiha

    B.

     asiha

    C.

     haasi

    D.

     hai

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    \n - newline - printf("\nab"); - Prints ab
    \b - backspace - printf("\bsi"); - firstly '\b' removes 'b' from 'ab ' and then prints 'si'. So after execution of printf


Be The First To Comment