It should not even compile without errors since this statement is not terminated by a semi-colon:Originally Posted by john5754
I suggest that you post your actual code (copy and paste, if necessary), and please post it in [code][/code] bbcode tags.Code:int jimmy[Height * Width]
Incidentally, I think that you need two arrays: the two dimensional array source and the one dimensional array destination. Alternatively, you use a one dimensional array and access it as a two dimensional array (but that seems the opposite of what you are asking for). Or, you use a two dimensional array and access it as a one dimensional array via a cast (but in practice, this should be avoided).