#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 |
Write a program which employs Recursion
Differentiate between a pointer and a reference with respect to c++.
What do you mean by translation unit?
What are c++ templates used for?
What is array give example?
What is the difference between the compiler and the preprocessor?
What are the five types of inheritance in C++?
Write some differences between an external iterator and an internal iterator?
What is c++ library?
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
What is the difference between global variables and local variable
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?