What is a pointer in C?

A pointer is a variable that refers to the address of a value. It makes the code optimized and makes the performance fast. Whenever a variable is declared inside a program, then the system allocates some memory to a variable. The memory contains some address number. The variables that hold this address number is known … Read more

What is an array in C?

An Array is a group of similar types of elements. It has a contiguous memory location. It makes the code optimized, easy to traverse and easy to sort. The size and type of arrays cannot be changed after its declaration. Arrays are of two types: One-dimensional array: One-dimensional array is an array that stores the … Read more

What is recursion in C?

When a function calls itself, and this process is known as recursion. The function that calls itself is known as a recursive function. Recursive function comes in two phases: Winding phase Unwinding phase Winding phase: When the recursive function calls itself, and this phase ends when the condition is reached. Unwinding phase: Unwinding phase starts … Read more

What is the use of the function in C?

Uses of C function are: C functions are used to avoid the rewriting the same code again and again in our program. C functions can be called any number of times from any place of our program. When a program is divided into functions, then any part of our program can easily be tracked. C … Read more

What is the use of a static variable in C?

Following are the uses of a static variable: A variable which is declared as static is known as a static variable. The static variable retains its value between multiple function calls. Static variables are used because the scope of the static variable is available in the entire program. So, we can access a static variable … Read more