Vidyalelo
C++ Programming · Q702

C++ miscellaneous

Programming · C++ Programming · question 702

Q702

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.
Hello World
B.
Compile-time error
C.
Run-time error
Answer
D.
Nothing is printed

Answer: Option C

Solution

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