a problem with division by integer, that is grater than 255

hello everyone.
And now that's the problem:
When I try to divide an integer by another integer( > 255), the result is 0(zero).
The example is:

.........
unsigned int result, c;
unsigned char a, b;
....
a = 3;
b = 100;
c = 14;
result = (256 * a + b) / c;
Up to now this code works.
If the integer "c" becomes greater than 255
the result is zero.
Why?
Please send me your opinion.
Thanks

Parents Reply Children
No data
More questions in this forum