C Tutorials

C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. By design, C provides constructs that map efficiently to typical machine instructions. It has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computer architectures that range from supercomputers to PLCs and embedded systems.

Creating While Loop Programs in C
Creating While Loop Programs in C
In this lab, we will learn how to create a while loop program in C language. A while loop is used in programming to execute a block of code repeatedly until the specified condition becomes false. This loop is used when we don't know beforehand how many times the loop will run.
C
Use of Gets Function in C Programming
Use of Gets Function in C Programming
In C Programming language, gets() function is used to take input from the user. Unlike scanf(), gets() reads a whole line of text, stops reading when Enter key is pressed, and does not discard the newline character.
C
Calculate Simple Interest Program
Calculate Simple Interest Program
In this lab, you will learn how to write a C program to calculate the Simple Interest for a given principal amount, rate of interest, and time duration.
C
Sort Array Elements
Sort Array Elements
This lab will guide you through a step-by-step process for sorting array elements in ascending order.
C
Simple Pointer Program
Simple Pointer Program
This lab will teach you the basics of pointers in C language. You will learn how to create a pointer, access the address and value of a variable using pointers, and print the values using format specifiers.
C
Reversing Case of Character
Reversing Case of Character
This lab will guide you through the process of writing a C program to reverse the case of input character. This program will take a user input character and convert it to its opposite case (lowercase to uppercase or uppercase to lowercase).
C
Swapping Numbers With Pointers
Swapping Numbers With Pointers
In C programming, you can swap two numbers using pointers. Pointers are powerful features in C that allow us to manipulate data by storing and accessing addresses instead of actual values. In this lab, we will learn how to swap two numbers using pointers.
C
Sum of N Input Numbers in C
Sum of N Input Numbers in C
This lab will guide you on how to write a program in C that sums up N input numbers. We will use a loop to get the sum of all input numbers and display the result.
C
Finding Second Largest Number in C
Finding Second Largest Number in C
In this lab, we will learn how to find the second-largest number out of three user input numbers in C programming language. We will be using an algorithm that utilizes nested if-else loops to find the second largest number.
C
Sum of First N Numbers With Recursion
Sum of First N Numbers With Recursion
In this lab, we will learn how to use recursion to find the sum of the first N numbers. We will use the C programming language to write a program that takes an user input, calculates the sum of the first N numbers, and outputs the result to the user. Recursion is a technique used in programming where a function calls itself to solve a problem.
C
Sum of N Integers Using Arrays
Sum of N Integers Using Arrays
In this lab, you will learn how to create a program to find the sum of n integers using an array. You will use C programming language to create the program.
C
Sum of Digits Calculation
Sum of Digits Calculation
In this lab, we will learn to write a program to calculate the sum of digits of a given number in C programming language.
C
Sum of Digits Using Recursion
Sum of Digits Using Recursion
Recursion is a programming technique where a function calls itself, allowing the function to repeat until a base case is met and the function returns the final output. In this lab, we will learn how to find the sum of digits of a given number using recursion.
C
Swapping Two Numbers Program
Swapping Two Numbers Program
Swapping two numbers means interchanging their values. In this lab, we will learn how to swap two numbers in C language using different methods such as using a temporary variable, addition and subtraction, bitwise operators, multiplication and division.
C
Recursive Power Calculation in C
Recursive Power Calculation in C
In this lab, we will learn how to calculate the result of a given number raised to the power of n using recursion in C programming.
C
Program Copy File
Program Copy File
In this lab, we will create a C program to copy the content of one file to another file. We will read from the source file and write the contents to the destination file.
C
Prime or Composite Number Using Recursion
Prime or Composite Number Using Recursion
In this lab, we will learn how to write a C program that checks if a number is a prime number or a composite number using recursion. A prime number is a number that is only divisible by 1 and itself, while a composite number is a number that is not a prime number. We will use recursion to write the program, which is a technique to solve problems by breaking them down into smaller, simpler problems.
C
Pointer to a Function
Pointer to a Function
Pointer to a function is a way to store the memory address of a function just like a variable stores the memory address of a value. When a function is called through a pointer, it is called pointer to a function.
C
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next