Google News
logo
CPP - Quiz(MCQ)
A)
Run-time error
B)
Segmentation fault as two string cannot be added in C++
C)
Error because s1+s2 will result into string and no string has substr() function
D)
The statements runs perfectly

Correct Answer :  

Advertisement