Vidyalelo
C++ Programming · Q236

Classes and Objects in C++

Programming · C++ Programming · question 236

Q236

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

A.
H
Answer
B.
e
C.
Error
D.
o

Answer: Option A

Solution

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