How would I go about making this table?
ID Type Value
X int 4
Y int 4
Z float 0
This is the only way I can think of but I don't think this will work.
int main(int argc, char *argv[])
{
char *strings_line1[3] = {"ID", "TYPE", "Value"};
char *strings_line2[3] = {"X", "int", "4"};
char *strings_line3[3] = {"Y", "int", "4"};
char *strings_line4[3] = {"Z", "float", "0"};
return 0;
}
Is this considered a symbol table? Whats the difference between a table and symbol table?