Sunday, May 5, 2013

What is C?????

                                        What is C???


Some of common computer languages and their translators will be described in this computer. A set of instruction to be executed by a computer is known as a program of c. A combination of different programs satisfying a common objective/task is called software.


Application software

A sdet of programs, which is necessary to perform various general-purpose operation or tasks, is called application software. for examples: Inventory control, pay roll etc..


System software

System software is a set of one or more programs that provides the facility to develop application programs or software for specfic task. for example: Compiler, Interpreter,Operating system and other Utility etc..



Computer languages

programming provides new tools to express ours ideas. Expressingb methodology in a computer language forces it to be unambiguous and  computationally effective. The task of formulating a method as a computer-executable program and debugging that program is a powerfull exercise in the learning process.


(1) computer circuits are designed on the basis of 2 bits 0 and 1. the output of such digital electronic circuit, at any time is either high or low. 1 and 0 can be re present these states respectively.


(2) This binary system simplifies the design of the circuits, reduece the cost and improves the reliability.


(3) Every opertion that can be performed that can be performed in decimal system can also be perform in binary.


(4) In  punched cards, a hole represents binary 1 and the absence of hole represents binary 0. This concept was used in earlier computers..



The C programming language is also a high-level programming language developed by Dennis Ritchie and Brian Kernighan at Bell Labs in 1972 from an almost unknown language named B. The first major program written in C was the Unix operating system, and for many years, C was considered to be inextricably linked with Unix. Below is an example of a C program that prints Hello World! after it's been compiled. If you need a free C compiler consider GCC.



C programming is one of thousands of computer programming languages that allow users to create instructions for a computer to follow. While C has a slightly more cryptic style than some other programming languages, it's fairly easy to learn and allows you to read and write code for many different platforms. Because it's so efficient and gives the user a lot of control, C is very popular with programmers.


C compiler to turn your program into an executable that the computer can run (execute). The C program is the human-readable form, while the executable that comes out of the compiler is the machine-readable and executable form. What this means is that to write and run a C program, you must have access to a C compiler. If you are using a UNIX machine (for example, if you are writing CGI scripts in C on your host's UNIX computer, or if you are a student working on a lab's UNIX machine), the C compiler is available for free. It is called either "cc" or "gcc" and is available on the command line. If you are a student, then the school will likely provide you with a compiler -- find out what the school is using and learn about it. If you are working at home on a Windows machine, you are going to need to download a free C compiler or purchase a commercial compiler. A widely used commercial compiler is Microsoft's Visual C++ environment (it compiles both C and C++ programs). Unfortunately, this program costs several hundred dollars. If you do not have hundreds of dollars to spend on a commercial compiler....


You will probably get some sort of error when you compile it, so make sure you remember the .c. Also, make sure that your editor does not automatically append some extra characters (such as .txt) to the name of the file. Here's the first program:
 
 
#include <stdio.h>
#include <conio.h> 
 void main()
{
    printf("This is output from my first program!\n");
    getch();
}


No comments:

Post a Comment