Why use C?
C has been used successfully for every type of programming problem imaginable from operating systems to spreadsheets to expert systems - and efficient compilers are available for machines ranging in power from the Apple Macintosh to the Cray supercomputers. The largest measure of C's success seems to be based on purely practical considerations:- the portability of the compiler;
- the standard library concept;
- a powerful and varied repertoire of operators;
- an elegant syntax;
- ready access to the hardware when needed;
- and the ease with which applications can be optimized by hand-coding isolated procedures
Uses of C
C was initially used for system development work, in particular the programs that make-up the operating system. Why use C? Mainly because it produces code that runs nearly as fast as code written in assembly language. Some examples of the use of C might be:- Operating Systems
- Language Compilers
- Assemblers
- Text Editors
- Print Spoolers
- Network Drivers
- Modern Programs
- Data Bases
- Language Interpreters
- Utilities
C Programs
A C program can vary from 3 lines to millions of lines and it should be written into one or more text files with extension ".c" for example hello.c. You can use "vi", "vim" or any other text editor to write your C program into a file.This tutorial assumes that you know how to edit a text file and how to write source code inside a program file.
No comments:
Post a Comment