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

check whether triangle is equilateral, scalene or isosceles





C++ Codings Global Function Friend Class - Similar to friend class, this 'C++ Function' can access the private and protected members of another class. A 'Global Function' can also be 'declared as friend' as shown in the C++ Code

C Programming Code Use Goto Statement - The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won't be easy to trace, hence

The C++ Booth's Multiplication Algorithm - "Multiply two Signed numbers" using Booth's algorithm. Booth's multiplication algorithm is a multiplication algorithm that multiplies two signed 'binary numbers' in two's complement

C Program to Linked List implementation - Create list, add in the list, delete in the list, append two list, show list, add in beginning, add in end, add after a given element, return to main menu, delete in beginning, delete in

Code Toggle or Invert nth Bit of a number - C program code input any number from user and toggle or invert or flip nth bit of the given number using bitwise operator. Toggling bit means setting a bit in its complement state.

Program Find the Number of Occurrences - 'Binary Search tree' for a given unsorted data array & maintain an additional count variable. If any 'Element is Repeated' then increase the count of that 'Node'. Proceed with the search

C Language Check Triangle is Valid or Not - C Program code to input side of a Triangle & check whether triangle is valid or not using if else. A triangle is valid if sum of its two sides is greater than the third side. Means if a, b, c

Checks a Character is Vowel or Consonant - The five alphabets 'A, E, I, O and U' are called 'vowels'. All other alphabets except these five vowel letters are called consonants. Program above assumes that the user always enters an