/***************************************************************************
 *  Columbia University Introduction to Computer Programming in C COMS 1003
 *  Program to Test Bitwise operators against logic operators
 *
 *  Copyright (C) 2005 Michael E. Locasto
 *
 *  All rights reserved.
 *
 * $Id: bittest.c,v 1.1 2005/09/19 00:33:54 locasto Exp $
 **************************************************************************/

#include <stdio.h>

/**
 * See the difference between || and |
 *
 * 
 */
int main(int argc, char* argv[])
{
   int x = 2;
   int y = 1;
   int r = x || y;
   printf("r is: %d\n",r);
   r = x | y;
   printf("r is: %d\n",r);
   return 0;
}
