C Examples

C Program To Draw A Line

 84 total views

 84 total views The C programming language allows drawing graphic shapes such as lines, rectangle, circles and so on. In this article, you will learn to write a program that draws a line on the console. This program is written using turbo C++ compiler installed on a windows 7 64-bit PC. Problem Definition The program uses …

C Program To Draw A Line Read More »

C Program To Find Average Age

 9 total views

 9 total views This program finds the average age of a person using an array. The array which stores a list of age is passed on to a function and the function computes the average age and returns a value. Before you begin with the example, learn basic concepts of C programming language such as arrays, …

C Program To Find Average Age Read More »

C Program To Write A File

 11 total views

 11 total views C programming allows to read or write files. In this program, a user will enter some text which will be stored in a file using file operations in C. Learn C programming concepts, before you begin with this example. C Printing Outputs. C Reading Input Values. C Pointers. C File Input-Output. Problem Definition …

C Program To Write A File Read More »