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


Please Help Members By Posting Answers For Below Questions

Why is c++ considered difficult?

737


Why do we use structure in c++?

668


Define token in c++.

810


What are associate containers?

698


When do we run a shell in the unix system?

673






What do manipulators do?

665


Explain about Virtual Function in C++?

693


What is the best c c++ compiler for windows?

649


Explain linked list using c++ with an example?

718


What should main() return in c and c++?

616


Can you explicitly call a destructor on a local variable?

673


What kind of problems can be solved by a namespace?

694


How does work in c++?

707


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

758


What is else syntax in c++?

738