#include<iostream.h>
void main()
{
class x
{
public:
int func(int)
{
cout<<"cool";
return 1;
}
}
}
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 |
Can you explicitly call a destructor on a local variable?
what is oops and list its features in c++?
How to tokenize a string in c++?
What is c++ flowchart?
What kind of jobs can I get with c++?
What is an inline function in c++?
Explain some examples of operator overloading?
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?
What is public, protected, private in c++?
Which operator can not be overloaded in C++?
Why is c++ still popular?