stuctures as fuctions

Joined
Oct 17, 2009
Messages
3
Reaction score
0
I’m having problems passing the account sturct array into a function.

I use

>>struct account
{
int accountNum;
float balance;
};

and to declare it.

>>struct account accInfo[SIZE];



so for the prototype i tryied

>>int hash (int acnt[SIZE], int key);


i tried passing it using

>> index = hash (accInfo[SIZE].accountNum, createAccount);

i think i need to use a pointer.. but i dont really know how that works.

any Ideas??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top