Question
1.
#include
2.
using namespace std;
3.
void print (char * a)
4.
{
5.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
void print (char * a)
4.
{
5.
cout
Answer: Option A
Was this answer helpful ?
In this program we used the concept of constant casting to cast the variable and printing it.
Output:
$ g++ ref2.cpp
$ a.out
Hello world
Was this answer helpful ?
More Questions on This Topic :
Question 2.
What does a reference provide?
....
Submit Solution