Programming Languages C++ Objective
Mar 21, 2013

What is the output of the following code 

 char symbol[3]={‘a’,‘b’,‘c’}; 

for (int index=0; index<3; index++) 

cout << symbol [index]; 

Choose the correct answer:
A) a b c
B) “abc”
C) abc
D) ‘abc’
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback