From ec76a960a6e9f04b5fe75faa7301d5fa5eed7fdb Mon Sep 17 00:00:00 2001 From: caminsha Date: Sun, 2 Feb 2020 21:20:09 +0100 Subject: Removed section about goto --- de-de/c-de.html.markdown | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'de-de/c-de.html.markdown') diff --git a/de-de/c-de.html.markdown b/de-de/c-de.html.markdown index e5beb28f..fceec5d4 100644 --- a/de-de/c-de.html.markdown +++ b/de-de/c-de.html.markdown @@ -364,23 +364,6 @@ int main (int argc, char** argv){ break; } - // Verwendung von "goto" in C - typedef enum { false, true } bool; - bool desaster = false; - int i, j; - for(i=0; i < 100; ++i){ - for (j=0; j < 100; ++j){ - if ((i + j ) >= 150){ - desaster = true; - } - if (desaster){ - goto error; - } - } - } -error: - printf("Ein Fehler ist aufgetreten bei i = %d & j ? %d\n", i, j); - //////////////////////////////////////////////// // Typenumwandlung //////////////////////////////////////////////// -- cgit v1.2.3