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





Coordinated Universal Time in C Language - C program code returns time in Coordinated Universal Time (UTC) (essentially Greenwich mean time). Printing the local time and date. Printing coordinated Universal Time and date

C Language Code Investigating the Family - C Function to input data on Family members. C Function to output data on people on file. Structure to hold data from file. Pointer to Family structure. File position. Open file for

Sorting of Less Than 100 Numbers in O(n) - We can implement the task best using 'Radix' sort. In this algorithm Sorting of data is done from least significant digit to most significant digit. Need 10 different spaces labeled '0 to 9'

Code Parse the Command Line Arguments - C program is an example of how to parse the command line arguments. It sets up all the global variables for a real program and it just doesn't have any body. Loop for each option.

Strrchr searches the string in reverse order - 'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it

Program Sample Displays Prime Numbers - If a number passed to checkPrimeNumber() is a Prime Number, this function returns true, if not the Function returns false. If enters larger number first, 'code' will not work as intended.

C++ Program Reverse an Integer Number - This takes an integer input from the user and stores it in 'variable n'. Then the while loop is iterated until n != 0 is false. In each iteration, the remainder when the value of n is divided

Multiply a Number by 4 Bitwise Operators - Program to multiply given number by 4 using bitwise operators. C Program code multiplies given number by 4 using "Bitwise Operators". Bitwise Operators: or, and, xor, not, left shift,