home *** CD-ROM | disk | FTP | other *** search
- /* --------------------------------------------------- */
- /* Programm für den Test der Kontrollfähigkeit eines */
- /* C-Compilers */
- /* (C) 1991 C. van Hoven & TOOLBOX */
- /* --------------------------------------------------- */
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <conio.h>
- #include <string.h>
-
- #define NANU = 2
- #define PING 1
- #define PONG -1
-
- int Quadrat(double a);
-
- struct iGitt
- {
- int oho, aha;
- }
-
- main()
- {
- int banane=0, apfel=PING-PONG, birne;
- unsigned int erbse=2, gurke=-1;
- volatile unsigned int *zwiebel=&erbse;
- char *tisch = 'T', *stuhl, sessel;
- double wolke=1.2;
-
- strcpy(stuhl, "hello world!");
- printf("Ergebnis 1: %d %d %d\n",
- banane, apfel);
- if(gurke<0)
- Quadrat(wolke);
- apfel=banane+++birne;
- erbse=*zwiebel + *zwiebel;
- printf("Ergebnis 2: %d %d %d\n",
- banane, apfel, wolke);
- getch;
- printf('\a');
- }
-
- int Quadrat(double a)
- {
- /* Nur von positiven Zahlen * /
- if(a>0.0)
- return(a*a);
- /* Nicht von negativen Zahlen */
- return(0.0);
- }