About 22,700,000 results
Open links in new tab
  1. How do I declare a global variable in VBA? - Stack Overflow

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I …

  2. 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 variable instead.

  3. Is there a way to do a #define inside of another #define?

    You could for example do an ifdef guard to initialize a variable in a macro but make sure it isn't declared twice. I'm sure there are other possible use cases. Besides, it's normal to give …

  4. What is the purpose of the #define directive in C++?

    May 10, 2010 · 0 in C or C++ #define allows you to create preprocessor Macros. In the normal C or C++ build process the first thing that happens is that the PreProcessor runs, the …

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

    Jul 9, 2018 · The #define version is still a macro. The code is expanded at the invocation site. It has all the expected problems (with macros) including namespace pollution and unexpected …

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

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

  7. How to set the python type hinting for a dictionary variable?

    Oct 1, 2018 · @topher217 'dict' and 'list' are actually the class names. I believe that's to distinguish built-ins from non-built-ins as apposed to primitive vs non primitive. User-defined …

  8. How do I define a function with optional arguments?

    How do I define a function with optional arguments? Asked 13 years, 4 months ago Modified 1 year ago Viewed 1.2m times

  9. c++ - 'static const' vs. '#define' - Stack Overflow

    Oct 28, 2009 · Is it better to use static const variables than #define preprocessor? Or does it maybe depend on the context? What are advantages/disadvantages for each method?

  10. What is the difference between a definition and a declaration?

    Sep 11, 2009 · If you forget to define something that's been declared and referenced somewhere, then the linker doesn't know what to link references to and complains about a missing …