# C Programming Code Examples

## C > Functions Code Examples

### C program to find prime numbers in given range using functions

Program Add Two Numbers Using Pointer -
In program we're going to accept 2 numbers from user using pointer. After accepting Two Numbers we are going to add Two Numbers by using "De-reference Operator" in Pointer.

C++ Programming Array Sort Bubble Sort -
To sort an array in ascending order by bubble sort in C++ language, you have to ask to user to enter the array size then ask to enter array elements, start sorting the array elements by

C Programming Codes to Quick Sort Array -
Programming code load some random values into the array. Print the original array. Print the 'quicksorted' array. Sort everything in between 'low' 'high'. Compare value and find

Takes octal number as input and converts -
C Program take a octal number as input and store it in the array octalnumber and using switch statement access each digit of a octal number and print its equivalent binary value

C++ Program Find Quotient & Remainder -
In program, user enter 2 integers (divisor and dividend), computes quotient and remainder. To compute 'quotient and remainder', divisor and dividend should be integers. The division

Program Finds Prime Numbers in a Range -
Program should display every prime number between 'range' and at the end total number of "prime numbers" found in range. Separate function which receives "two parameters" for

C Store Information Using Structures with -
C Programming example Store information using structures with dynamically memory allocation. This c program asks user to store the value of noOfRecords and allocates the

C Program Print Number Pyramid Pattern -
In Each Iteration we are moving downward so increment "y". For each new 'Iteration' we are starting from beginning but one 'co-ordinate' back so decrement x. 'Moves Cursor Position'