/***********************************************************************
 *
 * Purpose: Show the 'shift right' operator.
 * 
 * Author:  M.J. Leslie.
 *
 * Date:    19-Mar-95
 *
 ***********************************************************************/

main()
{
    unsigned int bytes=256;	/* 00000000 00000000 00000000 10000000 */
    do
    {
        printf("%3d \n", bytes);
        bytes >>= 1;		/* 00000000 00000000 00000000 01000000 */
    } while (bytes);
}

/***********************************************************************
 *
 *	Program results.
 *	----------------
 *
 * 256 
 * 128 
 *  64 
 *  32 
 *  16 
 *   8 
 *   4 
 *   2 
 *   1 
 *
 ***********************************************************************/


syntax highlighted by Code2HTML, v. 0.9.1