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 an adjust field format flag?
what is scupper?
Is there a sort function in c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
Which one is a preferred language C or C++? Why?
What is dev c++ used for?
How are Structure passing and returning implemented by the compiler?
What is #include sstream?
Write a program in C++ for Fibonacci series
Which ide is best for c++?
How do you define a class in c++?
What is java and c++?
How do I exit turbo c++?
What is purpose of abstract class?
Can I learn c++ without learning c?