I m gng to post one program .post the output of the corresponding program
#include<iostream.h>
#include<conio.h>
void fun()
{
class stud
{
private:
int b;
public:
void get()
{
int b;
b=10;
}
void display()
{
cout<<"b="<<b;
}
}};
void main()
{
stud o1;
o1.get();
01.display();
getch();
}
Al the very best
"For winners one reputation is to be added"
#include<iostream.h>
#include<conio.h>
void fun()
{
class stud
{
private:
int b;
public:
void get()
{
int b;
b=10;
}
void display()
{
cout<<"b="<<b;
}
}};
void main()
{
stud o1;
o1.get();
01.display();
getch();
}
Al the very best
"For winners one reputation is to be added"