When I run the following C++ code, got the compilation error like- Type 'array' may not be defined here in line 17.
#include<iostream.h>
class array
{
char a[10][10];
public:
array()
{
a[10][10]='h';
}
void print()
{
cout<<(a[0]==*a)&&(*a==0[a]);``
}
}
main()
{
array ob;
ob.print();
}
I tried my best to resolve this error, but not succeeded, please suggest the solution. Thanks in advance.