I need to create a array of type unsigned short and the values that i am going to set in there is in Hexadecimal.

for example: 0x733D , 0x995c etc.

there are 2 things i wish to do here;

1.) create an unsigned short array and initialise the above mentioned Hexadecimal values.
2.) retrieve each values from array index and display it. for example; arr [0]

Can someone help me write this code, i am a bit stuck here.

Could you post the code you have so far, so we can see exactly where your having problems?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.