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 / manish podiyal
C): outputs the address of v.
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What is the use of setprecision in c++?
List the special characteristics of constructor.
Is dev c++ free?
Is c++ a good beginners programming language?
Do we have to use initialization list in spite of the assignment in constructors?
What are enumerations?
How do I run a program in notepad ++?
Explain how overloading takes place in c++?
Write a Program for find and replace a character in a string.
Which c++ operator cannot overload?
program explaining feautures of c++
What will the line of code below print out and why?
What is == in programming?
How would perform Pattern Matching in C++?