A
asit
We know that array size can be a constant integer.
Consider the following case ??
calss myc
{
const int size;
int arr[size];
public:
myc(int x):size(x){}
}
Why the above code shows an error ??
How can we overcome it ??
Consider the following case ??
calss myc
{
const int size;
int arr[size];
public:
myc(int x):size(x){}
}
Why the above code shows an error ??
How can we overcome it ??