creat a pointer in struct creat array initialize -1, 10 times using for loop and print -1, 10 times using method in struct.
struct hasha {
    int* arr;
    int l;
    hasha(int no) {
        arr[no];
        l = no;
        for (int i = 0; i < l; i++) {
            arr[i] = -1;
        }
    }
    void print() {
        for (int i = 0; i < l; i++) {
            cout << arr[i] << " ";
        }
    }
};
int main() {
    hasha a(10);
    a.print();
}
 
     
    