Comment utiliser l’opérateur de décallage à droite non signé

Author:


{filelink=4600}

public class ShiftUR {
  public static void main(String[] args) {
    int i = -1;
    System.out.println(i >>>= 10); //  affiche 4194303
    long l = -1;
    System.out.println(l >>>= 10); // affiche 18014398509481983
    short s = -1;
    System.out.println(s >>>= 10); //  affiche -1
    byte b = -1;
    System.out.println(b >>>= 10); //  affiche -1
    b = -1;
    System.out.println(b>>>10); //  affiche 4194303
  }
}

A Voir sur le même Sujet:

  • décalage droite perl chaine

Leave a Reply

Your email address will not be published. Required fields are marked *