Retourner au contenu associé (journal : Un décalage de 64 bits, ça vous inspire comment ?)
Posté par ®om (site web personnel) le 14 mai 2017 à 20:10. En réponse au journal Un décalage de 64 bits, ça vous inspire comment ?. Évalué à 9.
// test.c #include <stdio.h> int main() { long i = 1; long x = i >> 64; long y = 1 >> 64; if (x != y) printf("undefined behavior spotted\n"); return 0; }
$ gcc -w test.c -o test && ./test undefined behavior spotted $ gcc -w -O1 test.c -o test && ./test
blog.rom1v.com
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# Undefined behavior
Posté par ®om (site web personnel) . En réponse au journal Un décalage de 64 bits, ça vous inspire comment ?. Évalué à 9.
blog.rom1v.com