# C Programming Code Examples

## C > Games and Graphics Code Examples

Page 1 Page 2

Page 1 Page 2

Prime Numbers in a Range with Functions

Declare function to find all prime numbers in given range. First give a meaningful name to our function. Say printPrimes() function will print all prime numbers in a range. Declare...

C Calculates Area of an Equilatral Triangle

An "Equilateral Triangle" has equal sides (all 3 sides are equal). In order to calculate the area of equilateral triangle, we must know the side of the triangle. This C program would prompt

Find the Largest Number Present in Array

To find the largest element in an array in C++ programming, enter the array size, enter the array elements. Start finding for the Largest element in the array to "Display the Largest"

C Program Computes Factorial of number

The Factorial of a Positive Number n is given by: factorial of n (n!) = 1*2*3*4...n. Factorial of a negative number doesn't exist. And, the factorial of 0 is 1, 0! = 1. The program takes a

C++ sample ask to enter a number to reverse it, then check whether reverse is equal to its "original or not", if "it is equal" then it will be palindrome else it will be not be palindrome:

Code Support Infinite Precision Arithmetic

C Program code creates a support for Infinite Precision Arithmetic which allows storage of Large Integers which is beyond the Range of the integral limit. C is architecture dependent

Check Even or Odd using Bitwise Operator

C Language program code sample input any number and check whether the given number is even or odd using bitwise operator. How to check whether a number is even or odd using

C Implement Priority Queue to Add Delete

Add the elements into the queue according to the order (ascending descending). Delete the elements. Function to create an empty priority queue. Function to insert value into