Vidyalelo
C++ Programming · Q956

C++ miscellaneous

Programming · C++ Programming · question 956

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
Answer
B.
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