Can we use data!=NULL?
Why did we take data!=-1 ..What if we want to take -ve numbers also into the list?
@gvspraveen113 how can you input null if -ve no are allowed to then you have to take input acc to the size given just like array
But how to take the input such that the criteria is after we press enter in the keyboard it stops taking input.?
@gvspraveen113
for that you can try this
int var;
while(cin>>var)
{
insertattail(head,val);
}
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.