5
1 2 3 4 5
not this we have to insert without knowing no. of elemts
1 2 3 4 5
How to input a single line of integer like 1 2 3 4 5 in ehich no. of elements is not given how to input it
hi @Aditya-Kushwaha-914550392281281
you have to take input in this fashion
int x;
int i=0;
while(cin>>x){
arr[i]=x;
i++
}
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course