About 56 results
Open links in new tab
  1. c - Как работает #define, какой тип данных хранит или как его ...

    Aug 24, 2021 · #define хранит не какие-то типизированные данные, а просто пару "имя-значение". Перед компиляцией все "имена" заменяются на "значения". …

  2. c++ - What does ## in a #define mean? - Stack Overflow

    In other words, when the compiler starts building your code, no #define statements or anything like that is left. A good way to understand what the preprocessor does to your …

  3. What does #define do in the Compiler? - Stack Overflow

    Jul 2, 2024 · 2 what's happening when you define something without giving a definition? Every valid #define directive associates a macro name with a corresponding …

  4. c++ - Why use #define instead of a variable - Stack Overflow

    May 14, 2011 · What is the point of #define in C++? I've only seen examples where it's used in place of a "magic number" but I don't see the point in just giving that value to a …

  5. How can I define a define in C? - Stack Overflow

    The question is if users can define new macros in a macro, not if they can use macros in macros.

  6. ¿Que significa el operador #define? - Stack Overflow en español

    Jul 5, 2021 · Pero en una forma más compleja, #define admite "parámetros" que pueden formar parte de la sutitución resultante. Eso permite usarlo para escribir una especie …

  7. What's the difference in practice between inline and #define?

    Aug 24, 2010 · Macros (created with #define) are always replaced as written, and can have double-evaluation problems. inline on the other hand, is purely advisory - the …

  8. c++ - Is there a difference between 'using' and '#define' when ...

    Feb 6, 2023 · Using #define macros is essentially just telling the compiler "HEY! Before you start actually compiling, make sure to go through and run a find and replace on this …

  9. c# - How do you use #define? - Stack Overflow

    Oct 30, 2013 · I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of …

  10. c++ - Declaring a function using #define - Stack Overflow

    Jul 9, 2018 · What is the advantage of using one over the other? also is there a technical name for defining a function as show in the first code (the one using #define).