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

Blogger Welcome to Education Blog Education is the act of learning things around us. It helps us to easily understand and deal with any problem and makes balance throughout the whole life in every aspect. Education is the first and foremost rights of every human being. Without education we are incomplete and our lives are useless. Education helps us to set a goal and go ahead by working on that throughout the life. It improves our knowledge, skill, confidence level and personality. It empowers us intellectually to interact with others in our life. Education brings maturity and teaches us to live in society with changing environment. It is the way to social development, economic growth and technological development.Education plays a great role in everyone’s life by building personality, improving knowledge and skill and providing feeling of well being of a person. Education has been divided into three categories in our country as Primary education, Secondary education and Highe...
Inspirational Quotes on Education School may have been – or may currently be – boring, a killer of creativity or downright awful for you. But education is still important because it opens the mind and expands it. And if your years in school were bad or boring you can still educate yourself now. So in this post I’d like to share 54 timeless, thought-provoking and inspiring quotes on education. “It is impossible for a man to learn what he thinks he already knows.”                         Mark Zuckerberg. In this success story, we are going to share Mark Zuckerberg biography, the youngest billionaire on the planet who created the Facebook social network that now has 1 billion monthly active users. Thanks to Facebook people around the world can easily keep in touch with all their friends. Not long ago, society just did not have such opportunity, but now...

Use of statement in python

Use of statement of Python: Use of if – else statement:-if – else is the variation of if statement. We attach condition with if statement if given condition is true then if block code will executed and if the given condition is false then else block code will executed. The syntax of if – else statement is given below:- if condition: Statement 1 Statement 2 else: Statement 3 Statement 4 Write a program in python to check the given number is even or odd. n=input(“Enter a number : ”) if n%2==0: print “The number ”,n,”is even” else: print “The number”,n,”is odd” Use of if-else ladder:- In Python language the switch statement is not worked. In Python we use if-else ladder in spite of using switch. The syntax of if-else ladder is given below:- if condition1: Statement 1 elif condition 2: Statement 2 elif condition 3: Statement 3 >br> else: Statement 4 Write a program in python to find greatest number in three numbers. a=input(“Enter firs...