#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 |
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
Show the declaration for a static function pointer.
What does I ++ mean in c++?
what is the basic concept of c++(object oriented programing)
What does it mean to declare a member function as static?
What are the five basic elements of a c++ program?
Can java be faster than c++?
What is private inheritance?
What is the difference between a template and a macro?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster
What are the 2 main types of data structures?