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 are friend classes?
What is a tuple c++?
Can non graphic characters be used and processed in C++?
How do you traverse a btree in backward in-order?
What is the latest c++ version?
What is data type in c++?
what are the iterator and generic algorithms.
Why should you learn c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
What are the basic data types used in c++?
How compile and run c++ program in turbo c++?
What does new in c++ do?
What is the use of default constructor?
How many types of modularization are there in c++?
Explain the use of this pointer?