Question
1.
#include
2.
using namespace std;
3.
int main(void)
4.
{
5.
const char *one = "Test";
6.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main(void)
4.
{
5.
const char *one = "Test";
6.
cout
Answer: Option B
Was this answer helpful ?
We are copying the values from one variable to other, So it is printing is TestTest
Output:
$ g++ res1.cpp
$ a.out
TestTest
Was this answer helpful ?
Submit Solution