Horje
how to pass an array of structs as an argument in c Code Example
how to pass an array of structs as an argument in c
struct Items
{
    char code[10];
    char description[30];
    int stock;
};

void ReadFile(struct Items items[10])
{
    ...
}

void xxx()
{
    struct Items MyItems[10];
    ReadFile(MyItems);
}




C

Related
best sites for loop practice c Code Example best sites for loop practice c Code Example
gcc undefined reference to initscr' Code Example gcc undefined reference to initscr' Code Example
error: 'endl' was not declared in this scope Code Example error: 'endl' was not declared in this scope Code Example
format in vim Code Example format in vim Code Example
traceroute windows command Code Example traceroute windows command Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9