#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 |
What is a custom exception?
What is protected inheritance?
Explain the concept of memory leak?
What is pure virtual function? Or what is abstract class?
What does the ios::ate argument do?
What is meant by a delegate?
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
Is java based off c++?
what is an array
Write a program which employs Recursion
What happens when a function throws an exception that was not specified by an exception specification for this function?
What is a namespace in c++?