/*
 * assign: hw#2 part 1
 */

#include <stdio.h>

void main(void)
{
	int a= 2, b = -3, c = 5, d = -7, e = 11;

	printf ("a / b / c = %d\n", a / b / c);
	printf ("7 + c * -- d / e = %d\n", 7 + c * -- d / e);
	printf ("2 * a %% - b + c + 1 = %d\n", 2 * a % - b + c + 1 );
	printf ("39/ - ++ e - + 29 %% c = %d\n", 39 / - ++ e - + 29 % c);
	printf ("a+= b += c+= 1 + 2 = %d\n", a+= b+= c+= 1+ 2);
	printf ("a*=b = c + 5 = %d\n", a *= b = c +5);
}



/*
 * assign : hw#2, part 2
 * 
 * answer: division error.. since b = -3
 *         ( 3 + b) becomes 0
 */


/*
 * assign : hw#2, part 3
 * printf (" A + 5 = %d\n", 'A' + 5);
 * printf (" A + 5 = %c\n", 'A' + 5);
 *
 * the first printf will print out 70. and the second printf
 * will print out 'F'. this means the character 'A' is represented
 * as integer 65. And it also means that arithmatic between
 * char and int is possible without much trouble.
 */
