# C Programming Code Examples

## C > Strings Code Examples

### Program to Count number of words, digits, vowels using pointers

C Language Reference Enum Value by Int -
C program example to learn reference enum value by int. Press a key to select animal: 1: cat, 2: dog, 3: lion, 4: tiger. Generate a new random number. Read and discard character.

C Language Code Formula of Permutation -
Permutation refers number of ways in which set members can be Arranged or Ordered in some fashion. The 'Formula of Permutation' of arranging k elements out of n elements is

C++ Finds All Roots of Quadratic Equation -
Program accepts "coefficients" of a quadratic equation from the user and displays the roots (both real and complex roots depending upon the discriminant). 'ax^2+bx+c = 0' (where a, b,

Swaps Numbers Using Pointers in the C++ -
The simplest and probably most widely used method to "swap 2 variables" is to use a third temporary variable: In programming, the act of 'swapping' two variables refers to mutually

C Earth years to other Planets Conversions -
Display conversions in C. Equivalent mercury years. Equivalent venus years. Equivalent mars years. Equivalent jupiter years. Saturn years. Uranus years, Neptune years, Pluto...

Implement Graham Scan Algorithm Finds -
This is a C++ Program to implement Graham Scan algorithm. 'Graham's scan' is a method of computing the convex hull of a finite set of points in the plane with time complexity O(n

Binary Search Tree by Recursive Traversals -
Function to insert a node in the tree. Inorder recursive & nonrecursive traversal. 'Preorder' recursive & nonrecursive traversal. 'Postrder' recursive traversal. Postorder non recursive

C++ Language Displaying Fibonacci Series -
The Fibonacci sequence is a series where the next term is the "sum of pervious two terms". The first two terms of the Fibonacci sequence is 0 followed by 1. Fibonacci Numbers: 0, 1, 1,