Search found 1 match
- Wed Feb 27, 2019 6:04 pm
- Forum: General Discussion and Questions
- Topic: C data structure to python dictionary
- Replies: 21
- Views: 14321
Re: C data structure to python dictionary
How does one construct and access a set of key-value pairs in C? To use a silly simple example, let's say I want to create a table which translates between an integer and its square root. If I were writing javascript, I could just do this: var squareRoots = { 4: 2, 9: 3, 16: 4, 25: 5 } and then acce...