1 changed files with 8 additions and 5 deletions
@ -1,10 +1,13 @@ |
|||||||
#include<stdio.h> |
#include<stdio.h> |
||||||
|
#define DEBUG |
||||||
|
|
||||||
int main() { |
int main() { |
||||||
printf("Details zur Kompilierung\n\n"); |
int a=2, b=3, ergebnis; |
||||||
printf("Datum: %s\n", __DATE__); |
ergebnis = (2*a) + (2*b); |
||||||
printf("Zeit: %s\n", __TIME__); |
#ifdef DEBUG |
||||||
printf("Zeile: %d\n", __LINE__); |
printf("* Debug: ergebnis = (2*%d) + (2*%d);\n", a, b); |
||||||
printf("Datei: %s\n", __FILE__); |
#else |
||||||
|
printf("Das Ergebnis ist %d\n", ergebnis); |
||||||
|
#endif |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue