私はcでそれを書くべきであるという計算をcで持っています#
これはcの私のコードです:
const unsigned long *S //which is an array that already contains data )
unsigned long y;
y = y + S[d]; //S[d] = 2582066069 and y = 3372499074 and the results is 1659597847
しかし、私のC#コードでは:
ulong[] S = (ulong[])hashtable[key];
ulong y = 2582066069;
y = y + S[d]; // s[d] = 3372499074 but the result is = 5954565143
私は、c と c# でのこの追加操作の違いを理解していません。