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

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

Find Angles of triangle if two angles given - C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of

Alternate Nodes in linked list by Recursion - Print the alternate nodes in a linked list using recursion. Program, using recursion, displays the alternate nodes in a Linked List. A linked list is an "ordered set" of data elements, each

Code Find Maximum Between 2 Numbers - C program code to input two numbers and find maximum between two numbers using conditional/ternary operator ?:. How to find maximum minimum between two numbers

Illustrate Stack Operations using MACROS - C Language Use #define function to define the macros. Define separate functions for the operations like push, pop, display etc. Use switch statement to access these functions.

C Standard Form of a Quadratic Equation - The determinant tells the nature of the roots. b*b-4ac: Determinant of quadratic equation. If determinant is greater than 0, the roots are real and different. If determinant is equal to 0

C++ Programs Finds kth Smallest Element - "Partitioning the array" on the basis of values at high as pivot value. Swapping value at high and at the index obtained. Partitioning array using last element as a pivot. And recursively

C++ Permute All Letters of an Input String - This algorithm takes the input of a string with all distinct characters 'N' Value. It places each character to every index by Swapping Values. A function to 'swap character' values of string