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

How to avoid changing constant values?

2 Answers   Symphony,


What is a character in c++?

0 Answers  


How many keywords are used in c++?

0 Answers  


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

0 Answers  


write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


What is the full form of ios?

0 Answers  


Explain terminate() function?

0 Answers  


What is abstraction with real time example?

0 Answers  


What are arithmetic operators?

0 Answers  


How can you tell what shell you are running on unix system?

0 Answers  


Does std endl flush?

0 Answers  


Categories