C Programming Code Examples
C > Games and Graphics Code Examples
Chess for two humans
Program Find GCD (HCF) of Two Numbers -
Recursive function in C language to find GCD (HCF) of two numbers. Find GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) of two numbers using recursion in C
C Sample Code Function Call by Reference -
What is function call by reference in C? When we call a function by passing the addresses of actual parameters then this way of calling the function is known as call by reference. In call
C Programming calculator use Switch Case -
Step by step descriptive logic to create menu driven calculator that performs all basic math operations. Input 2 numbers and a Character from user in the given format. Store them in
Find the First Capital Letter in String Using -
C program code to find the first Capital letter that exists in string, using recursion. We have included ctype.h in order to make use of "int isupper(char);" function that's defined inside
C++ Sample Calculate Power of a Number -
Program takes two numbers (a 'base number' and an 'exponent') and Calculates the Power. The technique works only if the exponent is a positive integer. If you need to find the power
C Programming language Reserved Words -
if, else, switch, case, default, break, int, float, char, double, long, for, while, do, void, goto, auto, signed, const, extern, register, return, unsigned, continue, enum, sizeof, struct and
C Increment every Element of the Array by -
C Program increments every element of the array by one & print array. We need to add 1 to all the elemnts of the given array. After adding 1 to all the elements of an array print
C How to Access the Address of a Variable -
In this program code, we have a variable j of int type. The value of j is 10 and this value must be stored somewhere in the memory, right? A memory space is allocated for each