Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.968 Beiträge
 
#1

In Delphi SHR is a SHR; in C >> is a SAR or SHR (via: Shift Right: Delphi vs C | Galf

  Alt 22. Nov 2011, 05:20
I never knew that >> in C was a SAR/SHR depending if the underlying integer type was signed/unsigned. In Delphi the SHR is always a SHR operation: it never takes into account the sign. SAR is the artithmetic shift right. SHR is the binary/logical shift right. –jeroen via:*Shift Right: ...

More...
  Mit Zitat antworten Zitat