Category

C Tutorial

76 posts

C nested if statements

This statement allows the user to use if block inside the other if block. And the inner if statement is executed only if the outer if statement’s condition is true. Syntax Syntax of nested if statement in C: nested if Flowchart: Example of nested if statement in C: The output of nested if

June 12, 2026Read more →

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 t

December 18, 2021Read 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 codin

August 22, 2021Read 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 util

June 25, 2021Read 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&nb

June 20, 2021Read 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 i

June 7, 2021Read 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,

May 16, 2021Read 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 value

April 11, 2021Read 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

April 11, 2021Read 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

April 10, 2021Read more →