Select the correct output of the following C++ program segment, assuming all…
Navodaya Vidyalaya Samiti 2022
Select the correct output of the following C++ program segment, assuming all necessary header files are correctly included.
void main () { char *S = "Inheritance"; S += 6; cout << S << endl; }
- A.
itence
- B.
tance
- C.
Tence
- D.
Inheri
Attempted by 706 students.
Sign up free to check your answer
Sign up freeLoading lesson…

