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

A function to output double values in a given width

Program to Accept the Height of a Person - Take the height of a person as input and store it in the variable height. If the variable height is lesser than 150 cm, then print the output as "Dwarf". If the variable height is lesser than...

C Language and Vertical Histogram Code - C program code Vertical Histogram. Define Maximum length of a word. Define Maximum No of words in a sentence. Excluding the space in the word length. Resetting the word

C Find Maximum Between Three Numbers - C program to input three numbers from user and find maximum between three numbers using conditional/ternary operator ?:. How to find maximum between three numbers using

Top Down Triangle Printing in C Language - C Program code to print 'Top Down Triangle'. A triangle with one of its 'angle 90 degrees' is called right triangle. We shall now see how to print stars, in right triangle shape, but upside

C Code Counts Number of Words in String - C program to 'count total number' of words in a string using Loop. To count total number of 'Words in a String' we just need to count total number of white spaces. Includes single blank

Checking Character is Vowel or Consonant - Alphabets a, e, i, o, u are known as vowels. All other alphabets except these 5 alphabets are known are 'consonants'. C++ sample assumes that the user will enter an Alphabet. Similarly

Insert Element in Array at certain position - Enter array size, array elements, element to be insert, enter the index where to insert the desired element in the array, so this program insert the desired element and displaying the

C Multiply two Matrices by Passing Matrix - C program asks the user to enter the size of the matrix (rows and column). It asks the user to enter the elements of those matrices and finally adds and displays the result. Perform