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

In c++, what is the difference between method overloading and method overriding?

603


Can turbo c++ run c program?

631


Explain shallow copy?

616


What is size of string in c++?

556


Explain the operation of overloading of an assignment operator.

698






What is a hash function c++?

556


What is the difference between map and hashmap in c++?

562


Tell me what are static member functions?

616


Write a program to interchange 2 variables without using the third one.

590


What is the hardest coding language to learn?

605


What is the difference between method overloading and method overriding in c++?

566


Can static member variables be private?

632


Is it possible to use a new for the reallocation of pointers ?

601


Where and why do I have to put the "template" and "typename" keywords?

586


What is static in c++?

596