1. What does the following do:
void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<<v;
}
a) Outputs 12
b) Outputs 10
c) Outputs the address of v
Answer Posted / guest
Ten(10) is the out put
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How a modifier is similar to mutator?
Is overriding possible in c++?
Define anonymous class.
What is the most common mistake on c++ and oo projects?
What is the difference between a definition and a declaration?
How does com provide language transparency?
What is a manipulator in c++?
Explain "const" reference arguments in function?
What is an undefined behavior and sequence points
What are destructors?
How did c++ start?
Can non graphic characters be used and processed in C++?
What does scope resolution operator do?
Is c++ used anymore?
Specify different types of decision control statements?