# C Programming Code Examples

## C > Mathematics Code Examples

### C Program to Check Prime or Armstrong Number Using User-defined Function

C Programming Codes Implement a Stack -
C Program to ask the user for the operation like push, pop, display, exit. Use the variable top to represent the top of the stack and then according to the option entered, access its...

Evaluates the Value of Any Polynomial of -
Give the degree of the polynomiala. Give the value of the coefficients. Give the value of the coefficients. Give the values of the coefficient of polynomialb. Give value to be substituted

C++ Compute Power with pow() Function -
In this 'C++' sample, you will learn to compute power to a number manually, by using 'pow()' function. Takes two numbers from the user (a base number and an "exponent") & calculates

C Language Finding the Sum of A.P Series -
Program calculates the the sum of A.P series. This C program is used to find the sum of the "Arithmetic Progression Series" and Here A.P stands for Arithmetic Progression. Sequence

Copying an Array involves index by index -
C program code shall help you learn one of basics of arrays. Copying an array involves index-by-index copying. For this to work we shall know the length of array in advance,...

C Collect Stats Speed Touch ADSL Modem -
This is a quick hack not a program. Connect & setup write descrip. Skipping the first [telnet] connection block.. W're not event driven.. Issue commands, set up alarm, interrupted...

C Prints Even or Odd Numbers in a Range -
First give a meaningful name to the recursive function to print even odd numbers. Let's say printEvenOdd(). This function can print both even as well as Odd Numbers in given range.

C program to Dynamic Array of structures -
Dynamic array of structures. Add ONE element to the array. Allocate memory for one 'struct node'. Copy the data into the new element (structure). Print the array. Free all...