C Programming

Showing 121 - 140 of 146 results
This C program checks if a specific bit position in an integer is set to one or not. In binary...
In C programming, comparing two numbers to check if they are equal is a basic operation. In this program, we...
This C program implements an adjacency matrix for a graph. An adjacency matrix is a two-dimensional array where each element...
In this C program, we will be adding two complex numbers. A complex number consists of a real part and...
This C program converts decimal numbers to Roman numerals using a function called convertToRoman. It takes user input, checks if...
This C program compares two strings entered by the user and determines their relationship based on lexicographical order. Problem statement...
This C program finds all prime numbers in a given range. It prompts the user to enter the starting and...
This C program checks whether a given number is a palindrome or not. What is a Palindrome? A palindrome is...
This C program finds the sum of the first N natural numbers, where N is entered by the user. The...
This C program checks whether a given number is prime or not using a recursive approach. A prime number is...
The C program provided is designed to count the number of lines in a text file. It prompts the user...
Intro This C program demonstrates how to delete an element from an array. It prompts the user to enter an...
This C program performs matrix multiplication. Matrix multiplication is a fundamental operation in linear algebra, where two matrices are multiplied...
In C programming, it is often necessary to swap the values of two variables. In this program, we will write...
This C program calculates the sum of the first N natural numbers using a for loop. It iterates from 1...
In C programming, it is often necessary to find the sum of the digits of a given number. In this...
This C program demonstrates the binary search algorithm using recursion. Binary search is an efficient algorithm for finding a specific...
This C program calculates the value of nCr (combination) using the formula n! / (r! * (n-r)!). It takes the...
This C program finds the next lower power of 2 for a given integer using bitwise operations. Problem statement Given...
This C program removes all repeated words in a given string. It prompts the user to enter a string, processes...