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

What is a custom exception?

1 Answers  


What is protected inheritance?

0 Answers  


Explain the concept of memory leak?

0 Answers  


What is pure virtual function? Or what is abstract class?

0 Answers  


What does the ios::ate argument do?

0 Answers  


What is meant by a delegate?

0 Answers  


write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement

2 Answers  


Is java based off c++?

0 Answers  


what is an array

20 Answers  


Write a program which employs Recursion

0 Answers  


What happens when a function throws an exception that was not specified by an exception specification for this function?

1 Answers  


What is a namespace in c++?

3 Answers  


Categories