Kursinnhold
C Preprocessing
C Preprocessing
1. Introduction to Preprocessing
3. Conditional compilation
Practical Use Cases
What are #ifdef and #ifndef
python
python
Error macro
Oppgave
Swipe to start coding
- Use the necessary macro to check the existence of
PROTOCOL_TCP
andPROTOCOL_UDP
, and don't forget to properly close the necessary macro. - Use a macro to check the values of the
PROTOCOL_TCP
andPROTOCOL_UDP
macros, and correctly close it. - Use a macro to check an additional condition.
- Use a macro to create an error message in case of an error.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 3
Practical Use Cases
What are #ifdef and #ifndef
python
python
Error macro
Oppgave
Swipe to start coding
- Use the necessary macro to check the existence of
PROTOCOL_TCP
andPROTOCOL_UDP
, and don't forget to properly close the necessary macro. - Use a macro to check the values of the
PROTOCOL_TCP
andPROTOCOL_UDP
macros, and correctly close it. - Use a macro to check an additional condition.
- Use a macro to create an error message in case of an error.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 3