Select the correct output of the following C++ program segment assuming all…

NVS TGT/PGT 2022

Select the correct output of the following C++ program segment assuming all necessary header files are correctly included. void main() { char *S = "MySQL"; S += 2; cout << S << endl; }

  1. A.

    SQL

  2. B.

    QL

  3. C.

    My

  4. D.

    MyS

Attempted by 233 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…