Welcome to the 100-day C programming practice challenge! These practice questions cover a wide range of topics and difficulty levels to help you become proficient in C programming. Feel free to use this list as a guide to enhance your coding skills.
- Print "Hello, World!".
- Calculate and print the sum of two numbers.
- Calculate the area of a rectangle.
- Check if a number is even or odd.
- Find the factorial of a positive integer.
- Swap two numbers without using a temporary variable.
- Generate and print the Fibonacci series.
- Check if a year is a leap year.
- Find the largest among three numbers.
- Print the multiplication table of a given number.
- Print prime numbers between two given numbers.
- Create a basic calculator using switch-case.
- Print a specific pattern.
- Check if a string is a palindrome.
- Find the Greatest Common Divisor (GCD) of two numbers.
- Print a different pattern.
- Implement a guessing game.
- Reverse the digits of a number.
- Calculate the sum of digits of a number.
- Find the Least Common Multiple (LCM) of two numbers.
- Calculate the average of an array.
- Find the smallest and largest elements in an array.
- Check if an array is sorted.
- Reverse the elements of an array.
- Count vowels and consonants in a string.
- Remove spaces from a string.
- Implement Bubble Sort for array sorting.
- Find the frequency of elements in an array.
- Merge two sorted arrays.
- Check if two strings are anagrams.
- Write a function to calculate the power of a number.
- Calculate the factorial of a number using recursion.
- Swap two numbers using pointers.
- Implement a function to find the length of a string.
- Calculate the sum of elements in a 2D array.
- Check if a number is prime using a function.
- Write a function to reverse a string.
- Find the second largest element in an array.
- Convert a decimal number to binary using a function.
- Find the intersection of two arrays.
- Create a structure to represent a student with name, roll number, and marks.
- Read and write data to a text file.
- Copy the contents of one file to another.
- Create a structure to represent a book with title, author, and ISBN.
- Find the average marks of students using structures and arrays.
- Count words, lines, and characters in a text file.
- Create a program to manage a bank account using structures.
- Read data from a CSV file and perform calculations.
- Create a program to manage a library catalog.
- Implement a basic text editor in C.
- Implement a stack data structure.
- Implement a queue data structure.
- Perform matrix multiplication.
- Calculate factorial using memoization.
- Implement binary search algorithm.
- Implement a linked list data structure.
- Implement a circular linked list.
- Sort an array using the Quick Sort algorithm.
- Calculate the nth Fibonacci number using memoization.
- Implement a hash table.
- Solve a system of linear equations using Cramer's rule.
- Implement a priority queue.
- Implement graph data structure and perform DFS/BFS traversal.
- Solve the Tower of Hanoi problem.
- Implement a binary search tree (BST) data structure.
- Perform matrix addition and subtraction.
- Implement Dijkstra's algorithm for shortest paths.
- Implement Knapsack problem using dynamic programming.
- Implement a basic calculator with multiple operations.
- Solve the Josephus problem using circular linked list.
- Implement a red-black tree.
- Implement graph traversal algorithm to detect strongly connected components.
- Implement Floyd-Warshall algorithm for all pairs shortest paths.
- Implement a heap data structure.
- Solve N-Queens problem.
- Implement Boyer-Moore string search algorithm.
- Solve longest common subsequence problem using dynamic programming.
- Implement trie data structure for efficient string operations.
- Implement skip list data structure.
- Solve traveling salesman problem using dynamic programming.
- Implement graph traversal algorithm to find articulation points.
- Solve coin change problem using dynamic programming.
- Implement AVL tree.
- Implement B-tree data structure.
- Solve longest increasing subsequence problem.
- Implement suffix array for string manipulation.
- Implement A* search algorithm.
- Solve maximum flow problem using Ford-Fulkerson algorithm.
- Implement graph traversal algorithm to find shortest path in weighted graph.
- Solve subset sum problem using dynamic programming.
- Implement Water Jug Problem.
- Solve Eight Puzzle using search algorithm.
- Implement RSA encryption algorithm.
- Solve Nim Game using optimal strategy.
- Implement N-Queens problem using genetic algorithm.
- Solve Tower of Hanoi iteratively.
- Implement Sieve of Eratosthenes for prime number generation.
- Solve Egg Dropping Problem using dynamic programming.
- Implement TSP using genetic algorithms.
- Solve Subset Sum Problem using backtracking.