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
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Can a constructor return a value?
How do you clear a map in c++?
describe private access specifiers?
What is the meaning of c++?
What does new in c++ do?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is extern c++?
Is it possible for a member function to delete the pointer, named this?
Explain rtti.
How do I start a c++ project?
Is java the same as c++?
What is an adjust field format flag?
How many types of modularization are there in c++?