Hi ! Thank you in advance for any help with, perhaps, a trivial topic for many of you. I am using C51 from Cypress semiconductor. According with my IDE the C version is C90. My question are two.
This is first one: Is it correct to pass a 2D array like Data[10][15], as argument like this?
uint8 my_function( uint8 Row, uin8 Col,Data[10][15])
This is second one: Can I declare and define the above array like global in other file like this:
extern uint8 Data[10][15];
when I have declared it like global in the file where is main() ?
For your reference, I need this for reading a sensor array, and pass the read values to a function to process it.
Thank you very much for any help