Hey Everyone, Lets say you have an array of static structures, in which each structure element contains something like "Name", "Age", "Money". How would you declare and populate your static array of type struct?
#include "stdio.h" struct column { char *name; int age; int money; }; const struct column table[] = { /* rows */ {"bob",50,200}, {"joe",30,50} }; int main() { printf("%s %d %d", table[0].name, table[0].age, table[0].money); return 0; } if you mean you want hash/dictionary indexing, you'll have to create a special object for that