Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. char* myfunc(char *ptr)

    {

    ptr+=3;

    return(ptr);

    }

    void main()

    {

    char *x, *y;

    x = "EXAMVEDA";

    y = myfunc(x);

    printf("y=%s", y);

    }

    What will be printed when the sample code above is executed?

  2. A.

     y=EXAMVEDA

    B.

     y=AMVEDA

    C.

     y=MVEDA

    D.

     y=VEDA

    E.

     y=EDA

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Explanation Not Provided


Be The First To Comment