"^" operator
              in 
             Programming Questions 
              •  
              2 years ago    
            
 
           
             What is the ^ operator called and what does it do? I can't find it anywhere in the reference.
            
             
            
            
             
            
             
            
            
             
            
             
            
            
 
            
           
             For example
            
            
              for(int i=0; i < 10; i++) {
             
             
                println(2^i);
             
             
              }
             
            
             Gives you
            
            
              2
             
             
              3
             
             
              0
             
             
              1
             
             
              6
             
             
              7
             
             
              4
             
             
              5
             
             
              10
             
             
              11
             
            
             Seems like the results alternate between additions and substractions...weird
            
            
             lolwut?
            
 
            
              
              2  
            
 
            