Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <iostream>

using namespace std;


struct NodS
{
int _data;
NodS *_next;
};
struct ListaS
{
NodS *_first;
};
void Init(ListaS *lista)
{
lista->_first = 0;
}

// Diferenta intre nullptr si 0 ???

ListaS* CreateListaS()
{
ListaS *result = new ListaS;
return result;
}
int main()
{
ListaS *lst2 = CreateListaS();
delete lst2;
return 0;
}

You might also like