Hi i need to Acess a variable "int Intval" in the below
mentioned code .How to Access it guys i am waiting for your
reply
Answer Posted / saikat ganguly
class val
{
int intval
public :
void func ()
{
print("\n Enter the value of intval);
scanf("%d",&intval);
}
};
void main()
{
val p
p.func();
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the most common mistake on c++ and oo projects?
Explain stack unwinding.
Why is c++ called oops?
What happens when you make call 'delete this;'?
What is pure virtual function? Or what is abstract class?
When does the c++ compiler create temporary variables?
What is the difference between the functions rand(), random(), srand() and randomize()?
What is general form of pure virtual function? Explain?
What are the different types of polymorphism in c++?
Why do we use classes in c++?
Write about all the implicit member functions of a class?
How one would use switch in a program?
What are shallow and deep copy?
What is == in programming?
Do vectors start at 0?