Vidyalelo
C++ Programming · Q79

Classes and Objects in C++

Programming · C++ Programming · question 79

Q79

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

A.
Hello World
B.
Hello
Answer
C.
World
D.
Error

Answer: Option B

Solution

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