Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Practical Use Cases | Conditional compilation
C Preprocessing
course content

Kursinhalt

C Preprocessing

C Preprocessing

1. Introduction to Preprocessing
2. Macros
3. Conditional compilation

book
Practical Use Cases

What are #ifdef and #ifndef

python
python

Error macro

Aufgabe

Swipe to start coding

  1. Use the necessary macro to check the existence of PROTOCOL_TCP and PROTOCOL_UDP, and don't forget to properly close the necessary macro.
  2. Use a macro to check the values of the PROTOCOL_TCP and PROTOCOL_UDP macros, and correctly close it.
  3. Use a macro to check an additional condition.
  4. Use a macro to create an error message in case of an error.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 3
toggle bottom row

book
Practical Use Cases

What are #ifdef and #ifndef

python
python

Error macro

Aufgabe

Swipe to start coding

  1. Use the necessary macro to check the existence of PROTOCOL_TCP and PROTOCOL_UDP, and don't forget to properly close the necessary macro.
  2. Use a macro to check the values of the PROTOCOL_TCP and PROTOCOL_UDP macros, and correctly close it.
  3. Use a macro to check an additional condition.
  4. Use a macro to create an error message in case of an error.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 3
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt