Observe the following C++ code and assume that all desired header files are…

Navodaya Vidyalaya Samiti 2022

Observe the following C++ code and assume that all desired header files are already included. Identify the possible output from the given options:

void main() { int M[] = {80, 60, 70, 90}; char *S = "MARKS"; int *P; P = M; P++; S++; cout << S << *P << endl; }

  1. A.

    MARKS 80

  2. B.

    ARKS 60

  3. C.

    RKS 70

  4. D.

    KS 90

Attempted by 528 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…