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


#include<iostream.h>
void main()
{
class x
{
public:
int func(int)
{
cout<<"cool";
return 1;
}
}
}



#include<iostream.h> void main() { class x { public: int func(int) { cout<<"..

Answer / m.shanmuga sundaram,rjnsoftwar

An user defined data type should end with a semi colon
otherwise returns "error syntax error : missing ';'
before '}'"

#include<iostream.h>

void main()
{
class x
{
public:
int func(int)
{
cout<<"cool";
return 1;
}
} ; /*An user defined data type should end with a
semi colon*/
}

Is This Answer Correct ?    13 Yes 7 No

Post New Answer

More C++ General Interview Questions

Can you explicitly call a destructor on a local variable?

0 Answers  


what is oops and list its features in c++?

0 Answers  


How to tokenize a string in c++?

0 Answers  


What is c++ flowchart?

0 Answers  


What kind of jobs can I get with c++?

0 Answers  


What is an inline function in c++?

0 Answers  


Explain some examples of operator overloading?

0 Answers  


What is the difference between = and == in C?

20 Answers   Christ University, Intel,


What does new return if there is insufficient memory to make your new object?

0 Answers  


What is public, protected, private in c++?

0 Answers  


Which operator can not be overloaded in C++?

1 Answers  


Why is c++ still popular?

0 Answers  


Categories