Q219
What will be the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) char str[10]; cin>>str; cout<<str; return 0;
A.
Compiler-time Error
B.
Run-time Error
C.
Input given by the user
D.
Depends on the length of the string entered by the user
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board