Sail E0 Webinar
Question


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
Options:
A .  Test
B .  TestTest
C .  Te
D .  none of the mentioned
Answer: Option B

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers