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
What is isdigit c++?
What are c++ manipulators?
Discussion on error handling of C++ .
How to defines the function in c++?
What is searching?
How can I learn c++ easily?
What is array give example?
Difference between delete and free.
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Can turbo c++ run c program?
What is jump statement in C++?
What is pointer with example?
Why is standard template library used?
Explain some examples of operator overloading?
Define anonymous class.