Skip to main content

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:
code:
char* list = malloc(size);
resize:
code:
char *newlist = realloc(list, newsize);  if (newlist != null) list = newlist;
access:
code:
char foo = list[x];
modify:
code:
list[x] = 'a';
free:
code:
free (list);


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk C list tutorial suggestions


Ubuntu

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support