Thread: C list tutorial suggestions
i not understand how use lists in c, , couldn't find through googling it. know tutorial lists / arrays in c? found plenty on c# , on c++, couldn't seem find on c (which seems hardest python user).
i shall demonstrate chars, principle same type:
allocate:
resize:code:char* list = malloc(size);
access:code:char *newlist = realloc(list, newsize); if (newlist != null) list = newlist;
modify:code:char foo = list[x];
free:code:list[x] = 'a';
code:free (list);
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk C list tutorial suggestions
Ubuntu
Comments
Post a Comment