Tic Tac Toe Game in C

Tic Tac Toe is a game in which two players pick X’s or O’s alternately in a matrix cell formed by two vertical and horizontal lines crossing each other. Each player tries to place three of their marks in a horizontal, vertical, or diagonal row. The player who put in this form will succeed in … Read more


C Program to Check Whether a Number is Palindrome or Not

Problem Description Write a C Program to check whether a given number is Palindrome or not. What is Palindrome Number in C? A number is said to be a palindrome number if it reads the same forward and backward i.e., on reversing the digits of the number we get the same number. Example: 121, 343. … Read more


Snake Game in C

Snake Game was quite a popular game in the late 90s. It was developed and published by Gremlin in the year 1976. Since then, different versions of the snake game have become popular on different platforms due to their easy, engaging, and interactive user experience and implementation. One such platform which made snake game a … Read more


Star Pattern Programs in C

Problem Description Create star pattern programs in C programming upon receiving number of rows as input. star patterns like rhombus star pattern, hollow star pyramid pattern, plus star pattern, star patterns using while loop and functions. What is Star pattern in C? A star pattern is a pattern that shows up as a staircase of … Read more


C Program to Calculate EMI

Problem Description Write a C Program to Calculate EMI using formula. What is EMI? Equated Monthly Installments (EMIs) are monthly payments made by borrowers to creditors on a specific date. Over some years, the loan is repaid in full, with EMIs covering both interest and principal. How to Calculate EMI with Example? EMI calculator is … Read more


C Program to Remove Duplicate Elements from an Array

What is Array? An array is a collection of similar data elements stored in a contiguous memory location. Example: arr[5] = {2,7,1,23,5} Example: Input Array: 1,2,4,5,4,2,7,5 Output: Resultant Array after removing duplicates: 1,2,4,5,7 Problem Description Write a C Program to remove duplicate elements from an Array. Problem Solution 1. Take size of the array n … Read more


Sparse Matrix Representation in C

Sparse Matrix: A sparse matrix is a matrix with the majority of its elements equal to zero. To identify a sparse matrix, we will check all the elements in the sparse matrix one by one and count the number of 0’s in it if the number of zeros’ is greater than 50% of the total … Read more


C Program to Check Symmetric Matrix

Symmetric Matrix: A square matrix that is equal to its transpose is known as a symmetric matrix. Transpose Matrix: The transpose of a matrix is found by interchanging its rows into columns or columns into rows. The transpose of the matrix is denoted by using the letter “T”. So, a matrix A is said to … Read more


C Program to Implement Binary Tree

Problem Description Write a C program to implement the Binary Tree operations and display its traversals. Outline of a Binary Search Tree: What is a Tree? What is a Binary Tree? Doubly Linked List Representation of a Binary Tree Node Implementation of Binary Tree (Program/Code) Binary Tree – insert() Method Binary Tree – delete() Method … Read more


Hello World Program in C

Hello World Program in C: Printing “Hello World” is the first step we follow in learning any programming language. It introduces us to various terminologies associated with a programming language. Problem Description Write a C program to print “Hello World”. Problem Solution 1. Include the necessary header files for printing. 2. Declare the main function … Read more

Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.