This Season
 

How to Use C

How to Use Cthumbnail
Comprehensive Guide to the C Programming Language

The C programming language was first developed in 1972 by Bell Telephone Laboratories to implement the original version of the Unix operating system. Since its development, C has been used for creating application software for both Windows, Unix and Linux operating systems. Over the past 30 years, C has been one of the most popular programming languages in the world. C has also played a large influence on new programming languages which have emerged over the past two decades to include C++, Java and C# which have all adopted similar programming and naming conventions to C.

Related Searches:
    Difficulty:
    Moderate

    Instructions

    Things You'll Need

    • C Compiler
    • Text Editor
      • 1

        Download and install a C compiler from The Free Country (see Resources).

      • 2

        Open your text editor and save the file name as HelloWorld.c.

      • 3

        Include the Standard Input/Output preprocessing directive at the start of the file. Preprocessing directives are indicated by the #include statement which causes the preprocessor component of the C compiler to replace this part of the file with the information included in the standard input/output library.
        #include <stdio.h>

      • 4

        Call the function main which is used to start program execution in C. The main function returns an integer value and the void statement indicates that no data type are passed as information to the function.
        int main (void)
        {

      • 5

        Next use the printf function to print the words "Hello World" to the computer console.
        printf("Hello World");
        return 0;
        }

      • 6

        Compile the simple program by typing cl HelloWorld.c. This will create HelloWorld.exe that you can then run by double clicking the file name in your file manager and view the output "Hello World" on your console output.

    Related Searches

    Resources

    • Photo Credit Wikimedia Commons by Prentice Hall

    Read Next:

    Comments

    You May Also Like

    • Visual C# Tutorial

      C# is intended to be an intuitive, general-purpose programming language. It is made to be easy to use for beginners, but also...

    • How to Use Turbo C

      Turbo C is the Integrated Development Environment (IDE) for the C programming language created and sold by the Borland Corporation. Originally founded...

    • How to Use C Arrays in C++

      A C array is a data structure that stores many elements of the same data type. C arrays, when you use them...

    • How to Use the Microsoft Visual Studio C Compiler for Picture Programming

      Picture programming is the art and science of capturing photographs as digital images on the personal computer and further enhancing and processing...

    • How to Make an Espresso

      An espresso is a high-pressure extraction of coffee from a special machine. These instructions will vary depending on the type of machine...

    • How to Use the Main Function in C++

      The main function is the entry point for any C++ program and is generally the first code that is executed when the...

    • Atypical Use of Language

      Atypical use of language refers to the use of spoken or written language in an abnormal manner. It is wrong use of...

    • How to Use Visual C 6

      C is a low-level programming language used to create desktop, Web and gaming applications. The Visual C 6 editor is software distributed...

    • How to Use Visual C

      Microsoft Visual C is a programming language. It is purpose oriented and is based on C + +. It has characteristics that...

    • How to Use a Switch Statement in C

      The switch statement is a powerful programming structure that exists in most programming languages. It will allow you to write a section...

    • How to Use A/C Manifold Gauges

      An A/C system in your car that is blowing hot air instead of cold air is major inconvenience. Pinpointing the possible cause...

    • How to Make Pumpkin Pie

      Made from fresh or canned pumpkin, pumpkin pie is the quintessential autumn treat. For a firmer pie, use just two eggs. For...

    • How to Create a Histogram Using the C Programming Code

      A histogram is a bar graph showing the frequency that each value occurs in a set of discrete values. Histograms are commonly...

    • How to Use the Strcmp Function in C++

      The C++ strcmp function compares two strings. It returns 0 if equal each other and a nonzero value that indicates which string...

    • What Is Java Programming Used For?

      Java is a powerful, portable object oriented (OO) programming language. It's used on Web pages, in cell phones and on mainframes all...

    • How to Use Functions In C

      In order to use functions in C, include the standard input/output library in a small program. Find out how to run a...

    • How to Use Vitamin C for Skin Care

      Vitamin C helps promote healthy skin care. The best skin care means getting good nutrition into your diet. The asorbic acid contained...

    • What Is a C Arm Xray Machine Used For?

      Many advances in medical technology have helped make procedures less invasive and more comfortable for patients. The C-Arm X-ray device, which was...

    Follow eHow

    Related Ads