Vidyalelo
C++ Programming · Q63

Classes and Objects in C++

Programming · C++ Programming · question 63

Q63

What will be the output of the following C++ code? #include #include #include using namespace std; int main(int argc, char const *argv[]) string s("a"); cout<<s; return 0;

A.
a
Answer
B.
empty string
C.
Error
D.
Segmentation fault

Answer: Option A

Solution

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