Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC830713); site vu44.UUCP
Path: utzoo!watmath!clyde!floyd!whuxle!mit-eddie!genrad!decvax!mcvax!vu44!duk
From: duk@vu44.UUCP (Duk Bekema)
Newsgroups: net.lang.c
Subject: Re: Default.
Message-ID: <344@vu44.UUCP>
Date: Fri, 22-Jun-84 00:21:09 EDT
Article-I.D.: vu44.344
Posted: Fri Jun 22 00:21:09 1984
Date-Received: Fri, 22-Jun-84 08:07:25 EDT
References: <366@diku.UUCP>
Organization: VU Informatica, Amsterdam
Lines: 29

In what place in the manual is stated that default (and case)
belongs to the nearest enclosing switch?
Of course, it is logical, it is exactly what I want, and I've
never thought otherwise; but I just can't find it.

This piece of program will print `Got here':

	switch (3) {
	default:
		if (0) {
		case 3:	printf("Got here\n");
			break;
		}
		break;
	}

but this piece won't:

	switch (3) {
	default:
		switch (0) {
		case 3:	printf("Got here\n");
			break;
		}
		break;
	}

				Duk Bekema
				..!mcvax!vu44!duk