Vidyalelo
C++ Programming · Q167

C++ miscellaneous

Programming · C++ Programming · question 167

Q167

What will be the output of the following C++ code? #include #include #include using namespace std; int main() string s = "Hello World"; any var(s); cout (var)<<endl; return 0;

A.
Run-time error
B.
Compile-time error
C.
Hello World
D.
Nothing is printed
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board