The structure:

typedef struct{
     int val[256];

The function(needs to pass information into the structure array 'val'):

void changeval(values *obj, int v, int a){

^^That piece is the piece I am having issues with...

And finally, the call:

int main(){
     values item;
     return 0;

Ok, why can't I pass a user-defined datatype into a function and be able to access the array that is in the object? :sad:

For me there is no problem with this code actually.

Can you tell more about the problem you have ?