A promotion surprise


   

/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/
// A promotion surprise!  
  
using System;  
  
public class PromDemo {     
  public static void Main() {     
    byte b;  
    
    b = 10;  
    b = (byte) (b * b); // cast needed!!  
  
    Console.WriteLine("b: "+ b);  
  }     
}