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

count number of alphabets, digits and special characters in string using pointers





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

Generate All Subsets of a Given Set in the - Print all combination of a given length from the given array. Return if the currLen is more than the "required length". If currLen is equal to required length then "Print the sequence".

Generating Random Numbers by Multiply - C++ Program to generate Random Numbers using Multiply with 'Carry' method. multiply-with-carry ("MWC") is a method invented by 'George Marsaglia' for generating sequences

Paddle Graphic Sample in C Programming - Sub functions to check the progress of the game, function to create paddle, functions to create bricks, clear a layer, produce various sounds, create a single brick, display symbol

Convert Octal Number Decimal Vice Versa - In the program, the octal number is stored in the variable octalNumber, passed to function octalToDecimal(). This function converts the octal number passed by user to its equivalent

C Calculate Difference Between Two Time - C programming code to calculate difference between two time periods. In this program, user is asked to enter two time periods and these two periods are stored in structure...

C Sort Set of Strings in Alphabetical Order - Program to sort set of strings in alphabetical order using strcmp(). Program will accept set of 5 strings & sort them using 'strcmp' library function and "Print the Result" on the screen.

Find Sum of Opposite Diagonal Elements - C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user