c puzzle solution

utzoo!decvax!harpo!npoiv!npois!houxm!houxa!houxf!yingf utzoo!decvax!harpo!npoiv!npois!houxm!houxa!houxf!yingf
Thu Dec 30 20:37:16 AEST 1982


/*
 * a is indeed = 2.
 */
main()
{
	int a, b, *p;
	b = 1;
	p = &b;
	a = b / (*p);	/* watch out if you write a = b/*p */
	++a;
	printf("a=%d b=%d *p=%d\n",a,b,*p);
}



More information about the Comp.lang.c mailing list