Posts

Showing posts from October, 2023

5 DEGREES TO GET A JOB

Image
5 IMPORTANT DEGREES TO GET A JOB AT                            GOOGLE

RECURSIVE FUNCTIONS

Image
              C++ RECUSIVE FUNCTIONS    A function that calls itself is known as a recursive function. And, this technique is known as recursion. Factorial of n = 1*2*3*...*n #include <iostream> using namespace std; int factorial(int); int main() {     int n, result;     cout << "Enter a non-negative number: ";     cin >> n;     result = factorial(n);     cout << "Factorial of " << n << " = " << result;     return 0; } int factorial(int n) {     if (n > 1) {         return n * factorial(n - 1);     } else {         return 1;     } }

INLINE FUNCTIONS

Image
INLINE FUNCTIONS : INLINE FUNCTIONS in C++ C++ provides inline functions to reduce the function call overhead. An inline function is a function that is expanded in line when it is called. When the inline function is called whole code of the inline function gets inserted or substituted at the point of the inline function call. This substitution is performed by the C++ compiler at compile time. An inline function may increase efficiency if it is small. Syntax: inline return-type function-name(parameters) {     // function code }  

BEST C++ COMPILER

Image
Process of compiling C++ code (i)Preprocessing : The preprocessor analyzes the source code in the first step of the compilation process and performs tasks such as including header files, expanding macros, and handling conditional compilation statements. (ii)Parsing : The next step is parsing, where the compiler checks the syntax of the source code and creates an abstract syntax tree (AST) to represent the code. Semantic analysis : The compiler analyzes the AST in this step and performs tasks such as type checking, name resolution, and error checking to ensure the code is valid and executable. (iii)Optimization : After analyzing and validating the code, the compiler may perform various optimizations to enhance the performance of the resulting code. These optimizations include removing dead code, inlining functions, and reordering code to improve cache performance. Code generation: Finally, the compiler generates object code that the computer can execute. This object code is ...

KDVP GOVT GIRLS HR SEC SCHOOL ,KOTTAR.

Image

AFTERNOON FOOD PROVIDING @ KDVP GOVT GIRLS HR SEC SCHOOL.........๐Ÿคฉ๐Ÿคฉ๐Ÿคฉ๐Ÿคฉ๐Ÿคฉ

Image