# C Programming Code Examples

## C > Pyramid Patterns Code Examples

### Programming Code To Create Pyramid and Pattern

C Coding Print all the Paths from the Root -
C language program Function to store all the paths from the root node to all leaf nodes in a array. Function which helps the print_path to recursively print all the nodes. Function to...

Program Finds Sum of Digits of a Number -
'Sum of digits' means add all the digits of any number, we take any number like 358. Its sum of all digit is '3+5+8=16'. Using given code we can easily write c++ program. Enters any num

C Programming to Multiply Two Matrices -
C Code to Multiply Two Matrices. How many rows in the first matrix? How many cols in the first matrix? How many rows in the second matrix? How many cols in the second matrix?

Code print the address of array elements -
For loop to print value and address of each element of array. Just to demonstrate that the array elements are stored in contiguous locations, I am displaying the addresses in...

C Find Power of a number using Recursion -
First give a meaningful name to our recursive function say pow(). The function must accept 2 numbers i.e. base. exponent and calculate its power. Hence, take 2 parameters for base

Program to Implement Ternary Seach Tree -
Program demonstrates the implementation of Ternary Seach Tree. Create a new ternary search tree node. And insert a new word in a Ternary Search Tree. Search a given word in

Finds Factorial of Number using Recursion -
This c program prompts user for entering any integer, finds the Factorial of input number & displays the output on screen. Use a recursive user defined function to perform the task. We

Calculator Program by use C++ Functions -
A simple C++ Calculator which have different functions for different operations. menu base selection screen using switch statement. Ever operation should have its own function. Code