Dynamic variable declaration in C
问题 I'm a ruby developer and its been long since I've coded in C. I have this small issue -Basically I want to use a datatype in C which behaves like a symbol in C. In other words, is this possible in C? Program asks user for name user replies - "foobar" declare an integer with the same name i.e. int foobar Thanks 回答1: Unlike in interpreted languages, C does not have a dictionary of variable names at runtime. There exist no variable names at runtime at all. Hence unfortunately it is impossible to