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...


class test
{
int a;
public:
test(int b):a(b){}
void show(){
cout<<a;
}
};
void main()
{
test t1;
test t2(5);
t1.show();
t2.show();
}


}



class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main()..

Answer / lakshmana swamy

test t2:

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C C++ Errors Interview Questions

class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }

1 Answers  


void main() { int i=7; printf("N= %*d",i,i); }

6 Answers   HCL,


Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL

0 Answers  


A sample program using data structure? what is file handling?

0 Answers   TCS,


what is meant by linking error? how can i solve it? if there is a linking error " unable to open file 'cos.obj'? then what should i do?

1 Answers  


quoroum of computer languages?

0 Answers   Infosys,


void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


errors are known as?

3 Answers   EX, State Bank Of India SBI,


#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer

10 Answers   Wipro,


difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?

2 Answers   TCS,


How to reverse a linked list without using array & -1? Thank you.

2 Answers   Access, Satyam,


char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


Categories