The Origins of C++ File Extensions: What is the Difference Between .cc and .cpp?

The Origins of C++ File Extensions: What is the Difference Between .cc and .cpp?

In C++ development, we encounter various source file extensions: .cpp, .cc, .cxx, .c++, and even the older .c. Among these, .cpp and .cc are the most common, widely found in various open-source projects and corporate codebases. Is there a substantial difference between them? Which one is better to choose? This article will discuss the C++ … Read more

The Inline Keyword in C Language

The Inline Keyword in C Language

Click 👆👆👆 the blue text Follow “Passion Embedded” <span>inline</span> is a keyword in C language used for function optimization, suggesting the compiler to directly embed the function body at the call site to reduce the overhead of function calls. Its usage involves syntax, compiler behavior, optimization strategies, and the differences with static functions and macros. … Read more