How it is this possible

To add comments, please log in or register
Bogdan Alin Baltatu
2553
Bogdan Alin Baltatu  

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Alain Verleyen
36153
Alain Verleyen  
Bogdan Alin Baltatu:

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Show the code that produces this output.
Bernhard Schweigert
28367
Bernhard Schweigert  
Bogdan Alin Baltatu:

I create a static struct and I load with data.

The struct is an array and the size is 200. 

If you look in the printscreen attached you will see on index 0 and index 1 i have data. But i cannot access or return the default value.

 

 

Happens if array is asked for maybe -1

check code

To add comments, please log in or register