Define Dictionary in arrays
Loading
Define Dictionary in arrays
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Dec 2, 2024, 7:04 AM
Hi,
What exactly do you need Kiran? As per your question, define a dictionary array as Jignesh already explained. Don't be confused with side arrays. It's an array that stores key-value pairs, similar to other collection types. Here, you can add different types of keys. In Jignesh's example, he added a key as a string and a value as an integer. Similarly, you can use different types for keys and values. You can also add a list of strings as a key. Everything depends on your business requirements.
Kiran KumarPosted Dec 3, 2024, 5:46 AM
Hi Rajesh
Thanks for the response now I got it you mean to say Dictonay will store the different data types as key value pair I am trying to differentiate with hash table which has also the same feature right please correct me if I am wrong
Thanks for your response
Kiran KumarPosted Dec 1, 2024, 7:54 AM
What is the meaning of side array can you explained in real time example?
I think other collection types also have key value pair storage right how this is different from other collection types
Jignesh KumarPosted Nov 30, 2024, 8:49 AM
Hello Kiran,
You can create Dictionary in side array,