What are preprocessor directives in C and C++?

preview_player
Показать описание
Welcome to the best video you have ever seen.
It is about what preprocessor directives like #include , #define and #pragma are.
Рекомендации по теме
Комментарии
Автор

Also, in case it's still not obvious, preprocessor directives don't give a flying f*ck about scopes, so this is possible:

#include <stdio.h>

void {
#define LeGeNdArY_OuTrO "cursed Linus"
}

int main(void) {
printf("Bring back %s.", LeGeNdArY_OuTrO);
return 0;
}

ajtan
Автор

how do you only have 700 subs, like what this is so good

thegoingwolf
Автор

What about the more powerful #pragma directive alternative, the #ligma directive?

hermanzhukov
Автор

my c++ professor offered me coke today

thecrazyparrot
Автор

I didn't get it. I'm also drunk

glyikerprobit