#
typedef struct
#
{int nx, ny, nz;
#
float *velocity;
#
}
as far as understanding of pointer is concerned , always consider these pointer as a field, which doesn't where to point unless you initialize them.
ok , dont confuse ..
you have declared Domain *domain , you have declared a pointer to that structure .but you didnt allocate any memory to that..
so if...
Leave a comment: