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




Count Number of Words in the given Text - Program takes a string as input and count the number of words in the input string. Take the string as input, store it in the array 's[]'. Using for loop search for a space ' ' in the string and

Implementing Circular Doubly Linked List - 'Memory allocated' for node dynamically and inserts element at beginning. Inserts elemnet at last. Inserts element at position and delete node at particular position. Update value of a

C++ Sorts Elements Lexicographical Order - This program sorts the 10 strings (entered by the user) in Lexicographical order (dictionary order). This program takes 10 words from the user and sort them in 'Lexicographical Order'

C Finds All Roots of A Quadratic Equation - Step by step descriptive logic to find roots of Quadratic Equation using Switch Case. Input coefficients of quadratic equation. Store it in some variable say a, b, c. Find discriminant of

Sum of Natural Numbers using Recursion - C Program find the sum of Natural Numbers using recursion. The 'Positive Numbers' 1, 2, 3... are known as natural numbers. Program below takes a positive integer from the user

Find Sum of First & Last digit of a number - C program to input a number and find sum of first & last digit of the number using for loop. Input a number from user and store it in some variable say j. Find last digit of given number

C++ Random Numbers the Middle Square - This C++ Program generate random numbers using Middle Square method. In practice it is not a good method, since its period is usually very short & it has some severe 'weaknesses',

C Program code to Multiply two Matrices - Read elements in two matrices and multiply them. Matrix multiplication program in C. How to multiply matrices in C programming. Input elements in first matrix from user and...