The inline functions are a C++ enhancement feature to increase the execution time of a program. Functions can be instructed to compiler to make them inline so that compiler can replace those function definition wherever those are being called. Compiler replaces the definition of inline functions at compile time instead of referring function definition at runtime. Using the inline keyword is simple, just put it before the name of a function. Then, when you use that function, pretend it is a non-inline function: #include <iostream> using namespace std; inline void hello() { cout<<"hello"; } int main() { hello(); //Call it like a normal function return 0; } However, once the program is compiled, the call to hello(); will be replaced by the code making up the function. So the main() will look like this sfter the compile: int main() { cout<<"hello"; return 0; }
The three-second rule is recommended for passenger vehicles during ideal road and weather conditions. Slow down and increase your following distance even more during adverse weather conditions or when visibility is reduced. Also increase your following distance if you are driving a larger vehicle or towing a trailer.