Giter Club home page Giter Club logo

cpp's Introduction

Cpp Basics - Foundational

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?

Ans: https://stackoverflow.com/questions/4421706/what-are-the-basic-rules-and-idioms-for-operator-overloading

Q: how does the global scope work?

Ans: https://stackoverflow.com/questions/10269012/global-scope-vs-global-namespace

Q: how does std::function work?

Ans: https://stackoverflow.com/questions/14936539/how-stdfunction-works

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>?

https://stackoverflow.com/questions/138600/initializing-a-static-stdmapint-int-in-c

Q: what are the differences between constexpr and const?

Q: how to determine the version of the c++ standard used by the compiler?

Ans: https://stackoverflow.com/questions/2324658/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://learn.microsoft.com/en-us/cpp/preprocessor/hash-define-directive-c-cpp?view=msvc-170

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?

Ans: https://stackoverflow.com/questions/31038437/difference-between-capturing-and-passing-an-argument-in-lambda-functions

Thought: can more delve into this answer and think of a better answer

  • What are the differences between static and dynamic lib in cpp?

cpp's People

Contributors

faithk7 avatar gitbook-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.