User Defined Function in C

In this tutorial, we will learn abt the user-defined function in C programming language. Let us start by understanding what is user-defined function in C. A function refers to a block of code that performs a specific task. User-defined functions are the ones that are defined by the users according to their needs and they … Read more

Flowchart – Advantages and Disadvantages

In this section, we will study the advantages of flowchart and also the disadvantages of flowchart. Let us start by understanding what is flowchart. A flowchart is a graphical representation of a programming language code so to relate the relations among functions. To simply the problem before coding, the programmer draws a building block with … Read more

LRU Page Replacement Algorithm in C

In this tutorial, we will look at C program for LRU Page Replacement Algorithm. Least Recently Used (LRU) Page Replacement algorithm It is an algorithm whose concept is based on the pages used in an instruction. The pages that are vigorously utilized in past instruction are probably going to be utilized intensely in the next … Read more

Algorithm and Flowchart to find Factorial of a number

This is the tutorial we will write an algorithm to find the factorial of a number, we will also learn to draw a flowchart to find Factorial of a number. You may go through the topic below to learn more about algorithms. Algorithm in C Let us start with a flowchart for factorial numbers. Flowchart to … Read more

Algorithm in C Language

In this tutorial, we will learn about the algorithms in C language with examples and practices. Let us start by understanding algorithms. What is Algorithm? An algorithm is a set of well-defined instructions to solve a particular problem. It is a step-by-step procedure to execute some instructions in a certain order to get the required … Read more

sizeof() operator in C

The sizeof operator in C is commonly used to determine the size of an expression or data types. It is a compile-time unary operator that returns the size of the memory allocated to that data type. sizeof operator is not used with primitive data types but can also be used with the pointer data type, … Read more

Command Line Argument in C

The arguments passed from the command line are called command-line arguments. Command-line arguments are passed to the main() method. It allows you to pass the values in a program when they are executed. This is useful when the developer wants to control the program from the outside. Since the values passed to the main() function, … Read more

C – Union

Like Structure in C, Union is also a user-defined data type that is used to store the collection of different data types which are grouped together. Union and structure both are the same, except allocating memory for their members. Structure allocates storage space for each member separately whereas, Union allocates one common storage space for … Read more

C – Structure and Function

Just like any other variables that are passed in a function, structure can also be pas structs to functions. But before that you must go through the following topics in C. Structure In C Functions in C Passing structures to functions While passing a structure we may pass the members of the structure or we … Read more

C Nested Structure

Nested Structure in C is nothing but the structure within a structure. We can declare a structure inside a structure and have its own member function. With the help of nested structure, complex data types are created. The struct declare inside another struct has its own struct variable to access the data members of its … Read more