I have a struct:
typedef struct { int nNum; string str; }KeyPair; Let's say I initialize my struct:
KeyPair keys[] = { {0, "tester"}, {2, "yadah"}, {0, "tester"} }; I want to use the initialized values in a function. How do I pass this array struct as a function parameter?
I have:
FetchKeys( KeyPair *pKeys) { //get the contents of keys[] here... }