Is it even possible to create a singly linked list using a function outside of main and then access it once you leave the function?
pseudo:
#include //whatever needs to be included
function{
\\create and link lists in this function
}
main{
funtion()//call function to create lists and link properly
print(my_new_list)//traverse properly through the list here once out of function scope
}
I've been at this forever now and can't find any help out there to even confirm if it is possible this way or not. I understand how to build a linked list and then traverse it provided I am in the same function it was created in, it is the separate function that is messing things up for me because of the whole scope issue.