# C++ Programming Code Examples

## C++ > Pointers Code Examples

### Simple Program for Add Two Numbers Using Pointer in C++

How to Call a Function in C Programming? -
Call a function in C Language. A function is a block of statements that performs a specific task. Suppose you are building an application in C Language and in one of your c code, you

C++ Displays such a Pattern for n Number -
C++ Program to display 'such a Pattern'. Each row will contain odd numbers of number. The first and last number of each row will be 1 and middle column will be the "row number". So n

C language simple program dice throwing -
C Programming dice throwing code. Seed the random number generator. The highest score of the two dice wins. Get a random number from 1 to 6. Calculate the total of the two...

Program Code Display Fibonacci Sequence -
The Fibonacci Sequence is a series where the next term is the sum of pervious 2 terms. The first two terms of the Fibonacci sequence is 0 followed by 1. The sequence: 0, 1, 1, 2, 3, 5, 8,

C Multiply two Matrices by Passing Matrix -
C program asks the user to enter the size of the matrix (rows and column). It asks the user to enter the elements of those matrices and finally adds and displays the result. Perform

Doubly Linked List Sample in C Language -
C Language program code doubly linked list. Create Linked List. Allocate memory for new node. If head is empty, create new list. Move to the end of the list. Insert link at the end of

Merge Sort Linked list Code in C Language -
Add a node to the linked list. Preform merge sort on the linked list. Merge the lists. Insert some numbers into the linked list. Sort the list. Print the list. Free the list. Add a node to

Code Converts Binary Number to Decimal -
C language code to convert binary to decimal number system. The Binary number system is base 2 number system & uses only 2 symbols to represent all its numbers i.e. 0 and 1. Input