Q956
What will be the output of the following C++ code? #include #include using namespace std; int main () string mys; char mya[20]= "Hello world"; mys = mya; cout << mys << ' '; return 0;
A.
Hello world
AnswerB.
Hello
C.
Error
D.
Runtime error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board