Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the most common mistake on c++ and oo projects?

982


Explain stack unwinding.

1083


Why is c++ called oops?

1186


What happens when you make call 'delete this;'?

1102


What is pure virtual function? Or what is abstract class?

1067


When does the c++ compiler create temporary variables?

1052


What is the difference between the functions rand(), random(), srand() and randomize()?

1294


What is general form of pure virtual function? Explain?

1002


What are the different types of polymorphism in c++?

1150


Why do we use classes in c++?

1074


Write about all the implicit member functions of a class?

1062


How one would use switch in a program?

1084


What are shallow and deep copy?

1123


What is == in programming?

1032


Do vectors start at 0?

995