please excuse this dumb question:
I'm trying to store the product of 2 unsigned integers into a unsigned long integer:
unsigned int a; //a=355
unsigned int b; //b=336
unsigned long int array; // array = b*a;
array = (unsigned long int) b*a;
The result I get in the print out is array=54752 (D5E0 in hex, where I should be getting 1D5E0 or 120288 in decimal).
Anybody know what's going on?