C programming is one of the most fundamental and widely used programming languages in computer science.
Dennis Ritchie at Bell Labs developed C in the early 1970s.
Learning C provides a strong foundation for understanding other programming languages like C++, Java, and Python.
Due to its efficiency, control, and versatility, it has become one of the most widely used programming languages.
This tutorial is designed for software programmers who want to learn the C programming language from the ground up. It will provide you with a solid understanding of C programming, enabling you to advance to higher levels of expertise.
C Tutorial
- What is C Programming
- Setting Up the Development Environment for C Programming
- Writing and Running Your First C Program
- Structure of a C Program
- C Comments
- C Variables
- C Data Types
- C Constants and Literals
- C Operators
C Control Flow Statements
- Introduction to C Control Flow Statements
- C if-else Statement
- C switch Statement
- Introduction to C Loops
- C for Loop
- C while Loop
- C do-while Loop
- C break Statement
- C return Statement
- C continue Statement
- C goto Statement
C Functions
C Arrays and Strings
<h2>C Memory Management</h2>
C Structures, Unions, and Enums
C File Handling
C Preprocessor
C Command Line
C Programs with Output
- C Program to Print Hello World
- C Program to Add Two Numbers
- C Program to Swap Two Numbers
- C Program to Swap Two Numbers Without Using a Temporary Variable
- C Program to Find the Largest of Three Numbers
- C Program to Check Even or Odd Number
- C Program to Find the Factorial of a Number
- C Program to Print the Fibonacci Series
- C Program to Reverse a Number
- C Program to Check Palindrome Number
- C Program to Find the Sum of Elements in an Array
- C Program to Find the Largest Element in an Array
- C Program to Implement Linear Search
- C Program to Implement Binary Search
- C Program to Sort an Array Using Bubble Sort
- C Program to Sort an Array Using Insertion Sort
- C Program to Merge Two Arrays
- C Program to Find the Second Largest Element in an Array
- C Program to Rotate an Array Left and Right
- C Program to Print a 2D Array
- C Program to Find the Maximum and Minimum in an Array
- C Program to Sort an Array in Ascending and Descending Order
- C Program to Sort an Array in Ascending Order Using a Function
- C Program to Sort an Array in Ascending Order
- C Program to Sort an Array in Descending Order
- C Program to Reverse a String
- C Program to Check if a String is a Palindrome
- C Program to Find the Length of a String
- C Program to Copy One String to Another
- C Program to Concatenate Two Strings
- C Program to Compare Two Strings
- C Program to Convert a String to Uppercase
- C Program to Find the Length of a String Without Using Library Function
- C Program to Compare Two Strings Without Using Library Function
- C Program to Convert a String to Lowercase
- C Program to Count Substrings in a String
- C Program to Count the Number of Vowels in a String
- C Program to Count the Frequency of Each Character in a String
- C Program to Find the Length of a String Without Using Library Function
- C Program to Add Two Matrices
- C Program to Subtract Two Matrices
- C Program to Multiply Two Matrices
- C Program to Find the Transpose of a Matrix
- C Program to Find the Determinant of a Matrix
- C Program to Check if a Matrix is Symmetric
- C Program to Perform Scalar Multiplication of a Matrix
- C Program to Print the Diagonal Elements of a Matrix
- C Program to Find the Factorial of a Number Using Recursion
- C Program to Print the Fibonacci Series Using Recursion
- C Program to Reverse a String Using Recursion
- C Program to Check if a String is a Palindrome Using Recursion
- C Program to Calculate Power of a Number Using Recursion
- C Program to Find the Sum of Digits of a Number Using Recursion
- C Program to Solve the Tower of Hanoi Problem Using Recursion
- C Program to Print the Address of a Variable Using Pointers
- C Program to Swap Two Numbers Using Pointers
- C Program to Add Two Numbers Using Pointers
- C Program to Find the Length of a String Using Pointers
- C Program to Reverse a String Using Pointers
- C Program to Copy a String Using Pointers
- C Program to Concatenate Two Strings Using Pointers
- C Program to Sort an Array Using Pointers
- C Program to Search an Element in an Array Using Pointers
- C Program to Compare Two Strings Using Pointers
- C Program to Access Array Elements Using Pointers
- C Program to Find the Largest Element in an Array Using Pointers
- C Program to Implement Bubble Sort Using Pointers
- C Program to Implement Selection Sort Using Pointers
- C Program to Implement Insertion Sort Using Pointers
- C Program to Implement Binary Search Using Pointers
- C Program to Merge Two Arrays Using Pointers
- C Program to Allocate Memory Dynamically Using malloc()
- C Program to Allocate Memory for an Array Using calloc()
- C Program to Reallocate Memory Using realloc()
- C Program to Free Allocated Memory Using free()
- C Program to Implement Singly Linked List
- C Program to Implement Doubly Linked List
- C Program to Insert a Node at the End of a Linked List
- C Program to Insert a Node at the Beginning of a Linked List
- C Program to Delete a Node from a Linked List
- C Program to Reverse a Linked List
- C Program to Find the Length of a Linked List
- C Program to Search an Element in a Linked List
- C Program to Merge Two Linked Lists
- C Program to Detect a Loop in a Linked List
- C Program to Implement Stack Using Array
- C Program to Implement Stack Using Linked List
- C Program to Implement Queue Using Array
- C Program to Implement Queue Using Linked List
- C Program to Implement Circular Queue
- C Program to Convert Infix to Postfix Expression
- C Program to Evaluate Postfix Expression
- C Program to Implement Priority Queue
- C Program to Implement Double-Ended Queue (Deque)
- C Program to Implement Binary Search
- C Program to Implement Quick Sort
- C Program to Implement Merge Sort
- C Program to Implement Heap Sort
- C Program to Implement Radix Sort
- C Program to Implement Counting Sort
- C Program to Implement Shell Sort
- C Program to Implement Binary Search Tree (BST)
- C Program to Traverse a Binary Tree Using Inorder Traversal
- C Program to Traverse a Binary Tree Using Postorder Traversal
- C Program to Find the Height of a Binary Tree
- C Program to Implement Breadth-First Search (BFS)
- C Program to Implement Depth-First Search (DFS)
- C Program to Implement a Graph Using Adjacency Matrix
- C Program to Find the Sum of Two Numbers Without Using Arithmetic Operators
- C Program to Generate Random Numbers
- C Program to Implement a Basic Calculator
- C Program to Convert Decimal to Binary
- C Program to Convert Binary to Decimal
<stdio.h> Library Functions
- C scanf() Function
- C printf() Function
- C sprintf() Function
- C sscanf() Function
- C fopen() Function
- C fclose() Function
- C fread() Function
- C fgets() Function
- C fputs() Function
- C getchar() Function
- C putchar() Function
- C fclose() Function
- C fopen() Function
- C fflush() Function
- C fread() Function
- C fwrite() Function
- C remove() Function
- C rename() Function
- C tmpfile() Function
- C tmpnam() Function
- C fgetc() Function
- C fputc() Function
- C getc() Function
- C getchar() Function
- C gets() Function
- C clearerr() Function
- C feof() Function
- C ferror() Function
<stdlib.h> Library Functions
- C atof() Function
- C atoi() Function
- C atol() Function
- C atoll() Function
- C strtod() Function
- C strtof() Function
- C strtol() Function
- C strtoll() Function
- C strtoull() Function
- C rand() Function
- C srand() Function
- C calloc() Function
- C free() Function
- C malloc() Function
- C realloc() Function
- C abort() Function
- C atexit() Function
- C exit() Function
- C getenv() Function
- C system() Function
- C bsearch() Function
- C qsort() Function
- C abs() Function
- C div() Function
- C labs() Function
- C llabs() Function
- C lldiv() Function
<string.h> Library Functions
- C memcpy() Function
- C strcpy() Function
- C strncpy() Function
- C strcat() Function
- C strncat() Function
- C memcmp() Function
- C strcmp() Function
- C strncmp() Function
- C memchr() Function
- C strchr() Function
- C strcspn() Function
- C strpbrk() Function
- C strrchr() Function
- C strspn() Function
- C strstr() Function
- C memset() Function
- C strerror() Function
<math.h> Library Functions
- C cos() Function
- C sin() Function
- C tan() Function
- C acos() Function
- C atan() Function
- C atan2() Function
- C cosh() Function
- C sinh() Function
- C tanh() Function
- C acosh() Function
- C asinh() Function
- C exp() Function
- C ldexp() Function
- C log() Function
- C log10() Function
- C modf() Function
- C exp2() Function
- C expm1() Function
- C ilogb() Function
- C log1p() Function
- C log2() Function
- C logb() Function
- C scalbn() Function
- C pow() Function
- C sqrt() Function
- C cbrt() Function
- C hypot() Function
- C erf() Function
- C erfc() Function
- C ceil() Function
- C floor() Function
- C fmod() Function
- C trunc() Function
- C round() Function
- C lround() Function
- C llround() Function
- C rint() Function
- C lrint() Function
- C llrint() Function
- C copysign() Function
- C fdim() Function
- C fmax() Function
- C fmin() Function
- C fabs() Function
<ctype.h> Library Functions
- C isalnum() Function
- C isalpha() Function
- C isblank() Function
- C isdigit() Function
- C isgraph() Function
- C islower() Function
- C isprint() Function
- C ispunct() Function
- C isspace() Function
- C isupper() Function
- C tolower() Function
- C toupper() Function
<time.h> Library Functions
- C clock() Function
- C difftime() Function
- C mktime() Function
- C time() Function
- C ctime() Function
- C gmtime() Function
- C strftime() Function
- C longjmp() Function