C++Learn C++Videos

Learn C++ With Neighborhoods Banding Together : Reasoning Globally About Programs by Lisa Lippincott (CPPCon 2020) Video

The most detailed rationale for programs is performed locally: considering the proximity of a program – usually a single function and the interfaces around it – and the reason for its action without reference to the rest of the program. This justification serves a broader objective: ensure that the whole program behaves appropriately. In this video, you will be learning how to put…
Read more
C++C++11C++14C++17Learn C++

Learn to Use Constant References in C++ Functions

When we call a function with parameters taken by value, it copies the values to be made. This is a relatively inexpensive operation for fundamental types such as int, float, etc. If the parameter is composed of a large compound type, this may result in a certain overhead. For example, let’s consider this following function to combine name, mid name, and surname. string fullname (string…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn About Function Declaration and Definition in C++

In C and C++ programming language there are two parts of a function, Declaration, and Definition. Function Declarationis the combination of the return type of function, function’s name, and parameters in parenthesis.Function Definitionis the body of the function includes statements and other functions. In general use, they are defined together as below, myfunction() // this…
Read more