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

Who invented turbo c++?

1112


Should the this pointer can be used in the constructor?

1072


How the delete operator differs from the delete[]operator?

1140


What is c strings syntax?

1198


Define 'std'.

1222


Does there exist any other function which can be used to convert an integer or a float to a string?

1128


What is setiosflags c++?

1025


What are guid?

1302


How can you quickly find the number of elements stored in a dynamic array?

1095


What is array in c++ example?

1164


What is the main function c++?

1170


What is the difference between public, private, and protected access?

1123


Explain static and dynamic memory allocation with an example each.

1151


What are the 2 main types of data structures?

1167


What is the use of 'using' declaration in c++?

1190