Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes

C Programming Code Examples

C > If Else and Switch Case Code Examples

Program to Check if a given Integer is Positive or Negative

Sort the Array Elements using Gnome Sort - This C Program sort the array elements using gnome sort. Gnome sort(stupid sort) is a sort algorithm which is similar to insertion sorting except that 'moving an element' to its proper

Whether a Path Exists Between two Given - We create a queue for BFS. Mark the current node as visited and enqueue it. It will be used to get all adjacent vertices of a vertex. Get all adjacent vertices of the dequeued vertex s. If

C++ Language Using the main() Function - The "main() function" is called when the c++ program starts after initialization of the non-local objects with static storage duration. It's the primary entry point of any C++ Program

Check Vowel or Consonant use switch case - English Alphabets a, e, i, o, u both lowercase & uppercase are known as vowels. Alphabets other than Vowels are known as Consonants. Input an alphabet from user. Store it in some

C++ Codes Solve Tower of Hanoi Problem - C++ program displays the iterative solution to the Tower of Hanoi problem. Tower Of Hanoi consists of 'three rods' and a number of disks of different sizes which can "Slide Onto" any

Printing ASCII Values of Characters in C++ - Placing the number in the ch variable of char type to convert the ASCII value in equivalent character to print all the ASCII values of the characters as shown here in the c++ program

C Sort Structures on the basis of Structure - Using cricket, declare an array player with 10 elements and write C program code read the information about all the 10 players and print a team wise list containing Names of Players

This is a Tictactoe Game in C++ Language - It isn't too smart to prevent you from winning but it is worth playing it. "opening headerfile" iostream for in-out. Opening headerfile conio for clrscr(); Opening headerfile stdlib for. And