class queue{
int n;
int a[n];
public:
queue(int d){
n=d;
}
};
//above code always throws out an error but when ,I implement the same code dynamically it does not give me an error.
class cat{
int*a;
public:
cat(int n){
a=new int[n]; // why do we dynamically allocate it
}
}