Skip to content

Instantly share code, notes, and snippets.

@mijaros
Created March 16, 2018 14:41
Show Gist options
  • Save mijaros/1971d42ca89fce8c76f8648ecba762da to your computer and use it in GitHub Desktop.
Save mijaros/1971d42ca89fce8c76f8648ecba762da to your computer and use it in GitHub Desktop.
#include <string.h>
#include <stdio.h>
struct test {
char a[1024];
};
int main(void)
{
struct test arr[20] = {
{"a__hoj"},
{"b__hoj"},
{"c__hoj"},
{"d__hoj"},
{"e__hoj"},
{"f__hoj"},
{"g__hoj"},
{"h__hoj"},
{"i__hoj"},
{"j__hoj"},
{"k__hoj"},
{"l__hoj"},
{"m__hoj"},
{"n__hoj"},
{"o__hoj"},
{"p__hoj"},
{"q__hoj"},
{"r__hoj"},
{"s__hoj"},
{"t__hoj"},
};
size_t iter = 12;
printf("%s %s\n", arr[iter], iter[arr]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment