Q: what is a void pointer?
Ans: https://stackoverflow.com/questions/4334831/what-is-a-void-pointer-and-what-is-a-null-pointer
- void pointer is a raw pointer to some memory location, whereas a null pointer is a specia pointer that does not point to anything
Q: can you define an operator outside a class?
Q: how does the global scope work?
Q: how does std::function work?
Q: when should we use with the anonymous namespace?
Q: how to use attributes on cpp?
Q: what is "-rdynamic" and what does it do?
- exports the symbols of an executable
- t: not understanding
Q: what are the differences between constexpr and const?
Q: how to initialize a static std::map<int, int>?
Q: what are the differences between constexpr and const?
- Ans: https://stackoverflow.com/questions/14116003/whats-the-difference-between-constexpr-and-const
- const expr: creates a compile-time constant
- const means that value cannot be changedz
Q: how to determine the version of the c++ standard used by the compiler?
- What are the difference between NULL and nullptr in C++?
Ans
- NULL always refer to the 0; should use nullptr after C++ 11
- What is the significatnce of a .inl file in C++?
- Ans: https://stackoverflow.com/questions/1208028/significance-of-a-inl-file-in-c
- What does #define directive do in cpp?
- What is a __func__?
- When are cpp preprocessor beneficial?
Ans: https://stackoverflow.com/questions/1785572/why-should-one-bother-with-preprocessor-directives
Ans: https://stackoverflow.com/questions/96196/when-are-c-macros-beneficial
- Ans: __FILE__, ___LINE__
- What are the differences between capture and pass by argument in cpp?
Thought: can more delve into this answer and think of a better answer
- What are the differences between static and dynamic lib in cpp?