Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. What would be the output for the following Turbo C code?

    #include<stdio.h>

    void main()

    {

    int a[]={ 1, 2, 3, 4, 5 }, *p;

    p=a;

    ++*p;

    printf("%d ", *p);

    p += 2;

    printf("%d", *p);

    }

  2. A.

     2 4

    B.

     3 4

    C.

     2 2

    D.

     2 3

    E.

     3 3

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Explanation Not Provided


Be The First To Comment