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 > Beginners Lab Assignments Code Examples

Calender





C Program Codes Calculates Electricity Bill - Program to find electricity bill using if else in C. Input unit consumed by customer in some variable say unit and if unit consumed less or equal to 50 units. Then amt = unit * 0.50. Unit

Checking the Number is Armstrong or Not - To check whether a number is an 'Armstrong' number or not an Armstrong number in 'C++' Language, 'enter the number', now check for the Armstrong number, whether the entered

Convert Decimal number to Octal Number - Accept the given decimal number. If number is less than 8 the octal number is the same. If the number > 7 then Divide the number with 8. Write down the remainder. Do steps 3 and

Find ith Largest Number from a Given List - It is an improvement in BST by adding 2 more key functions - 'rank()' and 'select()'. The time complexity of Order-Statistic tree generation is O(n+n*log(n)). Once the tree is constructed

Program Code to Implement CockTail Sort - C Program implements cocktail sort. Cocktail sort is a variation of bubble sort that is both a stable sorting algorithm & a comparison sort. The algorithm differs from a "Bubble Sort" in

C Finds Maximum Between Two Numbers - Finding maximum in general is comparison of two numbers. In C language we compare two quantities using relational operator. We using either > or < operator to compare 2 numbers

Code Nonzero If ch is a White-Space Char - C Programming Language codings to returns nonzero if ch is a white-space char, including space, horizontal tab, vertical tab, formfeed, carriage return, newline character; otherwise

Counts Numbers of Vowels & Consonants - C program to find total number of vowels and consonants in a string using 'Loop and If Else'. Input string from user, store it in a variable str Initialize two other variables to store vowel &