Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. Find the output of the following program.

    void main()

    {

    int i=10; /* assume address of i is 0x1234ABCD */

    int *ip=&i;

    int **ipp=&&i;

    printf("%x,%x,%x", &i, ip, *ipp);

    }

  2. A.

     0x1234ABCD, 0x1234ABCD, 10

    B.

     0x1234ABCD, 0x1234ABCD, 0x1234ABCD

    C.

     0x1234ABCD, 10, 10

    D.

     Syntax error

    E.

     Runtime error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    && is logical AND operator and this operator requires two operands.


Be The First To Comment