Programming is like a muscle— the more you use it, the
stronger it gets!
Every challenge you tackle helps you grow and learn.
Embrace the process, enjoy the small victories, and remember that
each line of code is a step toward mastery.
To practice C Programming Language effectively, Register/Access
these platforms [From Beginner to Advanced]
• Practice C ([Link])
• Solve C | HackerRank
• Mock tests on Euclid [[Link]
These platforms offer fun challenges that can help you improve your
skills.
Keep coding, stay curious, and watch yourself shine!
75 Programming questions
Beginner Questions
• Hello World: Write a program to print "Hello, World!".
• Sum of Two Numbers: Write a program that takes two integers as
input and outputs their sum.
• Odd or Even: Write a program to check if a number is odd or even.
• Factorial: Write a program to calculate the factorial of a given
number.
• Simple Interest: Write a program to calculate simple interest given
principal, rate, and time.
• Swap Numbers: Write a program to swap two numbers without using
a temporary variable.
• Prime Number: Write a program to check if a number is prime.
• Reverse a String: Write a program to reverse a given string.
• Temperature Conversion: Write a program to convert temperature
from Celsius to Fahrenheit.
• Array Declaration: Declare an array of 10 integers and initialize it
with values from 1 to 10.
• Accessing Elements: Write a program to print the third element of an
array.
• Sum of Elements: Write a program to calculate the sum of all
elements in an array.
• Find Maximum: Write a program to find the maximum element in an
array.
• Find Minimum: Write a program to find the minimum element in an
array.
• Reverse an Array: Write a program to reverse an array in place.
• Copy an Array: Write a program to copy the contents of one array to
another.
• Count Even and Odd: Write a program to count the number of even
and odd integers in an array.
• Rotate an Array: Write a program to rotate an array to the right by k
positions.
• Check for Duplicates: Write a program to check if there are any
duplicate elements in an array.
• Two Sum: Write a program that finds two numbers in an array that
add up to a specific target.
• Sum of Two Arrays: Write a program to add two arrays of the same
size element-wise.
Intermediate Questions
• Palindrome: Write a program to check if a string is a palindrome.
• Check for Palindrome Using Pointers: Write a program to check if
a string is a palindrome using pointers.
• Fibonacci Series: Write a program to print the first n Fibonacci
numbers.
• Armstrong Number: Write a program to check if a number is an
Armstrong number.
• Count Vowels and Consonants: Write a program to count vowels
and consonants in a string.
• Sum of Digits: Write a program to find the sum of digits of a number.
• Copy a String: Write a program to copy one string to another without
using built-in functions.
• GCD and LCM: Write a program to find the GCD and LCM of two
numbers.
• Find Largest Element: Write a program to find the largest element in
an array.
• Binary Search: Write a program to perform binary search on a sorted
array.
• Remove Duplicates: Write a program to remove duplicates from a
sorted array.
• Merge Two Arrays: Write a program to merge two sorted arrays into
a single sorted array.
• Binary Search: Implement binary search on a sorted array.
• Find the Intersection: Write a program to find the intersection of two
arrays.
• Array Rotation: Write a program to left rotate an array by d positions.
• Find the Missing Number: Given an array of n-1 integers in the
range from 1 to n, find the missing number.
• Find the Majority Element: Write a program to find the majority
element in an array.
• String Length with Pointers: Write a function to determine the
length of a string using pointers.
• Concatenate Strings: Write a program to concatenate two strings
using pointers.
• Substring Search: Write a program to search for a substring within a
string using pointers.
• Count Vowels in a String: Write a program to count the number of
vowels in a string using pointer arithmetic.
• Dynamic Arrays: Create a dynamic array using pointers and
demonstrate how to add elements to it.
• Pointer Arithmetic: Write a program to demonstrate pointer
arithmetic by accessing array elements.
• Function with Pointer Arguments: Write a function that takes an
array and its size as arguments and returns the average of its
elements.
• Pass Array to Function: Write a program to pass an array to a
function and modify its elements.
• Pointer to Array: Write a program that uses a pointer to access and
print the elements of an array.
• Array of Pointers: Create an array of pointers to strings and print
each string.
• Multi-dimensional Array: Write a program to initialize and print a 2D
array.
• Transpose a Matrix: Write a program to transpose a given 2D array.
• Allocate 2D Array Dynamically: Write a program to allocate a 2D
array dynamically and populate it with user input.
• Find the Kth Largest Element: Write a program to find the k-th
largest element in an array.
• Find Common Elements: Write a program to find common elements
between two unsorted arrays.
• Count Words in a String: Write a program to count the number of
words in a string.
• Kth Smallest Element: Write a program to find the k-th smallest
element in an array.
• Top K Frequent Elements: Write a program to find the k most
frequent elements in an array.
• Group Anagrams: Write a program to group anagrams from a list of
strings.
• Find Missing Number: Given an array containing n distinct numbers
in the range [0, n], find the missing number.
• Rotate Array: Write a program to rotate an array to the right by k
steps.
• Remove Duplicates from Array: Write a program to remove
duplicates from a sorted array.
• Find Intersection of Two Arrays: Write a program to find the
intersection of two arrays.
• Maximum Subarray Sum: Write a program to find the contiguous
subarray with the largest sum.
• Longest Common Prefix: Write a program to find the longest
common prefix among an array of strings.
• String Compression: Write a program to compress a string by
counting consecutive characters.
• Matrix Multiplication: Write a program to multiply two matrices.
Advanced/Complex Challenges
• File I/O: Write a program to read from a file and write to another file.
• Game of Life: Implement Conway's Game of Life.
• Power Function: Implement a function to calculate x raised to the
power of n.
• Sieve of Eratosthenes: Implement the Sieve of Eratosthenes
algorithm to find all prime numbers up to n.
• Sort an Array: Write a program to sort an array using the bubble sort
algorithm.
• Implementing a Stack Using Arrays: Create a stack using an array
and demonstrate push and pop operations.
• Implementing a Queue Using Arrays: Create a queue using an
array and demonstrate enqueue and dequeue operations.
• Quick Sort: Implement the quick sort algorithm.
• Merge Sort: Implement the merge sort algorithm.