S
sarahh
Hi, I need help in the following question .
I have a cpu that knows to do the computations on 32 bits(unsigned
integer(
write a function that gets 2 64 bits numbers and return their sum.
I start with the following structure.
typedef struct{
unsigned int low;
unsigned int high;
}64bits;
and define the nums
64bits num1.num2;
1.I know that the limit of unsigned integer is ~64000 what happend in
case of overflow it start again from 0.?
2.could someone add solution for the question?
I have a cpu that knows to do the computations on 32 bits(unsigned
integer(
write a function that gets 2 64 bits numbers and return their sum.
I start with the following structure.
typedef struct{
unsigned int low;
unsigned int high;
}64bits;
and define the nums
64bits num1.num2;
1.I know that the limit of unsigned integer is ~64000 what happend in
case of overflow it start again from 0.?
2.could someone add solution for the question?