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


Please Help Members By Posting Answers For Below Questions

What are friend classes?

594


What is a tuple c++?

528


Can non graphic characters be used and processed in C++?

689


How do you traverse a btree in backward in-order?

609


What is the latest c++ version?

598






What is data type in c++?

539


what are the iterator and generic algorithms.

1473


Why should you learn c++?

565


Evaulate: 22%5 a) 2 b) 4 c) 0

659


What are the basic data types used in c++?

543


How compile and run c++ program in turbo c++?

614


What does new in c++ do?

558


What is the use of default constructor?

555


How many types of modularization are there in c++?

551


Explain the use of this pointer?

622