Q. What is the output of the following code?

Code:
char symbol[3]={‘a’,‘b’,‘c’}; for (int index=0; index<3; index++) cout << symbol [index];
  • (A) ‘abc’
  • (B) abc
  • (C) “abc”
  • (D) a b c
πŸ’¬ Discuss
βœ… Correct Answer: (B) abc

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
263
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate