A Quick Introduction to learning C Programming language
A very warm welcome to the new comers who want to learn
programming language .So you want to be a hero I mean programmer, well by reading this
tutorial may be I shall help you
accomplish your goal.
I have been professional computer programmer over 8
years. I am going to teach you how to begin writing your own computer software.
Programming language is a computer language that a lot
like to learn other human language that people speak like German or Arabic.The
best way to learn a 'human' language is to start speaking, listening, and the
grammar for later. The same can be applied to C. 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.
Why
should we learn c programming language?
1) If
you are a beginner and you have never coded before then you can learn C programming language step by step easily
2) Programmers switching to C from some other language
such as php, Java,c# ,Ruby,ASP.NET,JSP or Python.
What
are the requirements?
A C compiler and code editor (both are available free).C Editors and IDEs In order to write C programs
you will need a suitable editor or IDE (Integrated Development Environment).
Here are a few suggestions
1)code block IDE
2) Microsoft Visual C++
3) Borland C/C++ 3.0
C
Environment Setup:
Text
Editor
This will be used to type your program. The files you
create with your editor are called source files and contain program source
code. The source files for C programs are typically named with the extension
“.c”. Before starting your programming, make sure you have one text editor in
place and you have enough experience to write a computer program, save it in a
file, compile it and finally execute it.
The
C Compiler
The source code written in source file is the human
readable source for your program. It needs to be "compiled", to turn
into machine language so that your CPU can actually execute the program as per
instructions given. This C programming language compiler will be used to compile
your source code into final executable program. I assume you have basic
knowledge about a programming language compiler. Most frequently used and free
available compiler is GNU C/C++ . GNU gcc compiler works for both C and C++
programming languages.
You may have question what is compiler ?
A compiler is a program that translates a source code
into machine code for some computer architecture . Actually compiler is a
computer program mean software which reads source code and outputs assembly
code or executable code.
Why to use C?
C was initially used for system development work, in
particular the programs that make up the operating system. C was adopted as a
system development language 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
- Databases
- Language Interpreters
No comments:
Post a Comment