#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 |
How to avoid changing constant values?
What is a character in c++?
How many keywords are used in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
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
What is the full form of ios?
Explain terminate() function?
What is abstraction with real time example?
What are arithmetic operators?
How can you tell what shell you are running on unix system?
Does std endl flush?