I know it is wrong but suggest me some way by which such array is formed.
Ttelmah
Joined: 11 Mar 2010 Posts: 19553
Posted: Tue Sep 24, 2013 2:26 am
I suggest getting a C textbook....
It is not at all obvious what you are trying to do. There is no such 'type of array' in C. It looks like you are trying to build an int16 array, containing other variables (which happen to be int8). An array is a variable in it's own right, it can't 'contain' other variables.
Possibly you are trying to construct an array of pointers?. If so then the array needs to be an array of pointers (not int16), and needs to be given the address of the variables, not the variables themselves.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum