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

Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

967


What is else if syntax?

879


What are destructors?

746


Describe linked list using C++ with an example.

856


What is the difference between public and private data members?

889


What is abstraction c++?

786


What is c++ iterator?

835


Can we specify variable field width in a scanf() format string? If possible how?

904


What is data abstraction? How is it different from data encapsulation?

758


What is istream and ostream in c++?

805


Eplain extern keyword?

774


Is ca high or low level language?

813


What is the difference between prefix and postfix versions of operator++()?

819


Do class declarations end with a semicolon? Do class method definitions?

863


Define Virtual function in C++.

848