1.

What is the output of this program?
#include 
using namespace std;
void function(int p, int q)
{
p = 30;
q = 12;
}
int main()
{
int p = 14;
function(p, p);
cout << p;
return 0;
}

A. 30
B. 12
C. 14
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs