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 > Mathematics Code Examples

Volumes & Areas





Snake Game graphic code in a C program - C programming language Snake game. Use arrow keys to direct the snake. Avoid the head of snake not to hit any part of snake. Pick beats untill you win the game. Press

Converts Hexadecimal to Decimal Number - C program to input hexadecimal number and convert it to Decimal number. Hexadecimal number system is a base 16 number system. It uses 16 symbols to represent all number i.e.

C Program Compare two Text or Data files - Firstly Declare two file pointers for two files. Open 2 files in read mode. Now Inside while loop read both files character by character. Check both characters whether they're equal

Nested Namespace in C++ Programming - In C++ programming, you can create nested 'namespaces'. One namespace can be a part of another namespace. Simply we can create namespace X, which will contain namespace

Find Length of String by Defined Function - C Program to find Length of string with using user 'Defined function'. By using user-defined function write a code to find Length of String. After accepting the string from the user we're

C programming Scanf() Format Specifiers - Read a floating-point value, read a single character, read a decimal integer, read an integer in either decimal, octal, hexadecimal format, read a floating-point number, read a

C++ Program to Perform Greedy Coloring - Give all its neighbouring colours a vertex, but before that keep a check on used colours and unused colours. 'Only assign', unused colours to the upcoming vertex. The problem takes a

C Swap 2 Numbers using Bitwise Operator - Swap two number using bitwise operator in C programming. There are tons of discussions going around the internet to swap 2 numbers without using temporary variable. We can...