Skip to main content

Introduction of C Language

Introduction of C

The C programming language is a genera-purpose, high-level language (generally denoted as structured language). C programming languages was at first developed by Dennis M.Richie at At&T Bell Labs.

C is one of the most commonly used programming languages. It is simple and efficient therefore it become best among all. It is used in all extends of application, mainly in the software development.

Many software's & application as well as the compilers for other programming language are written in C also Operating Systems like Unix, Dos and Windows are written in C.

C has many powers, it is simple, stretchy and portable, and it can control System Hardware easily. It is also one of the few languages to have an international standard, ANSI C.

Advantages of C


1. Fast Powerful & efficient
2. Easy to learn.
3. It is portable.
4. "Mid-level" Language
5. Widly accepted language 6. Supports modular programming style.
7. useful for all applications
8. C is the native language of UNIX
9. Easy to connect with System devices/assemvly routines.

Structure of program

/*This program prints Hello World on screen*/
----------------------------------------------------------------

#include
Void main()
{
printf("Hello world\n");
}

-----------------------------------------------------------------

1./*This program....*/
The symbols/*and*/used for comment. This Comments are ignored by the compiler, and are used to provide useful information about program to humans who use it.
2.#include

This is a preprocessor command which tells compiler to include stdio.h file. 3.main()
C programs consist of one or more functions. There must be one and only one function called main. The brackets following the word main indicate that it is a function and not a variable.
4.{}
braces surround the body of the function, which may have one or more instructions/statements.
5.printf()
it is a library function that is used to print data on the user screen.
6."Hello world\n" is a string that will be displayed on user screen\n is the newline character.
; a semicolon ends a statement.
7.return 0; return the value zero to the Operating system.

C is case sensitive language, so the names of the functions must be typed in lower case as above.
we can use white spaces, tabs & new line characters to make our code easy to read.

Comments

Post a Comment

Thank you for comment.

Popular posts from this blog

Classification of computer based on their cost size and confriguration.

TYPES OF COMPUTER Computer and it's Type Computers are classified by the type of data they are desinged to process. Data may be obtained either as a result of countig of through the use of same measuring instrument. Data that are obtained by counting are called discreate data are total numbers of students in a classroom. Data that must be obtained throgh measurement are called continous data. For example, continious data are the speeds an automobile measure by speedmotor or the tempreature of a patient as masured by a thermometer. Classification of computer based on their cost size and confriguration. In this category computers are classified as micro-computer. mainfraim compute...

History of C language

. History of C Language History of C language is interesting to know. Here we are going to discuss brief history of c language. C is an imperative procedural language.C is a general-purpose language which has been closely associated with the UNIX operating system for which it was developed - since the system and most of the programs that run it are written in C. C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in U.S.A. C was developed at Bell Laboratories as a system programming language to implement a new operating system on a DEP PDP-11 minicomputer. The project began in 1972, and a language description was published six years later (Kernighan and Ritchie, 1978) [C is a compact terse programming language that includes data types, data separations, the ability to manipulate addresses, and uncomplicated but complete set of flow control constructions. Dennis Ritchie is known as the fo...

Why is education important in life?

Education is important in life because it gives people the skills and tools they need to navigate the world. Without education, people would not be able to read, write, calculate or communicate; they would also not be able to perform jobs competently, accurately and safely. Education also teaches people about the world in which they live, including information about history, philosophy and culture. Others believe education is important because it helps to answer life's big questions, including questions of how to live, work and love. Still others believe that education is important because it teaches people about the world around them. The Importance of Information Technology in Education The world of education is changing as the modern world continues to grow. With so much progress happening, it’s important that education be able to reach students in new ways so that their students are prepared for the future. The students of today are the leaders, inventors, teachers...