Vidyalelo
C++ Programming · Q410

C++ miscellaneous

Programming · C++ Programming · question 410

Q410

What will be the output of the following C++ code? #include using namespace std; int main(void) const char *one = "Test"; cout << one << endl; const char *two = one; cout << two << endl; return 0;

A.
Test
B.
TestTest
Answer
C.
Te
D.
TestTe

Answer: Option B

Solution

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