C Tutorials

1. Sum of the elements of an array in C

By: Ignatius : 2012-03-16

Description: This simple C program computes the sum of all the elements of an array.


2. Printing a simple histogram in C

By: Ignatius : 2012-03-16

Description: This simple C program prints a simple histogram.


3. Sorting an integer array in C

By: Ignatius : 2012-03-16

Description: This simple C program sorts the elements of an integer array and prints them.


4. Find square and square root for a given number in C

By: Jeffrey : 2012-03-16

Description: This simple C program shows how to find square and square root for a given number.


5. Simple arithmetic calculations in C

By: Jeffrey : 2012-03-16

Description: This simple C program shows simple arithmetic calculations.


6. Command-line arguments in C

By: Jeffrey : 2012-03-16

Description: This simple C program shows the method to accept and display command-line arguments.


7. Calculator in C

By: Emiley J : 2010-04-16

Description: This is a simple calculator written in C. To use this calculator, just type the number, followed by the operand and then by another number. The application will then display the result. After the result is displayed, the program goes into the loop which asks if they want to do another calculation. If y is pressed, another calculation can be carried out.


8. Passing double value to a function in C

By: Emiley J : 2010-04-16

Description: This sample program in C demonstrates the concept of passing a double value to a function as parameter. The program accepts a number in feet and converts the feet into meters by using a conversion function.


9. Passing pointer to a function in C

By: Emiley J : 2010-04-16

Description: This sample program in C demonstrates the concept of passing a pointer as a parameter to a function. In this program, the function "prompt" accepts two pointers. The second parameter (num) is a pointer to the variable i. Since it is a pointer, the function does not return the value. The value is stored in i itself.


10. Infix to Prefix And Postfix in C

By: Prachi : 2009-03-21

Description: This is a sample program that converts Infix to Prefix and Postfix in C.