So you want to be a hero.... I mean programmer, well by reading this tutorial maybe we'll be able to help you accomplish your goal. First a little about C and its derivative C++. It is considered to be the most commonly used programming language. If you want a job in programmming, you will need to know this language. But what makes C the language that everyone wants to use. Well, its been around for quite some time. The original C since the 70s, and C++ since the early 80s, which is like eons in computer time. C is the most versatile high level language. C permits just about anything, allowing programmers to write straight to the metal. Its code runs very fast. Note that this tutorial will not cover C++ (C with classes).
Table of Contents:
Your First Program
Data Types and Printf
Loops and Conditions
Pointers and Arrays
This tutorial is meant to be a brief introduction to C, it is by no means exhaustive. If you need more information try looking at our Other Resources. Learning a programming language is a lot like learning a language that people speak like German or French. The best way to learn a 'human' language is to start speaking, listening, and repeating, and then leaving the grammar for later. The same can be applied to C, you need to start writing programs as quickly as possible. So, this tutorial will provided a lot of well commented sample programs that you can run and tinker with.
1. Your First Program
If you've ever read another tutorial or a book on a programming language, then you've probably seen a program like this before. The hello world program. It is a perfect starting place for our tutorial. So, type the following program into your favorite editor. If you are using Windows then try notepad or DOS Edit, if using a *Nix variant use VI or emacs. Without further adew here is the program :
/* hello world program */
Cite This Essay
(2013, 11). c language. StudyMode.com. Retrieved 11, 2013, from http://www.studymode.com/essays/c-Language-43998322.html
"c language" StudyMode.com. 11 2013. 2013. 11 2013 <http://www.studymode.com/essays/c-Language-43998322.html>.
- MLA 7
"c language." StudyMode.com. StudyMode.com, 11 2013. Web. 11 2013. <http://www.studymode.com/essays/c-Language-43998322.html>.
"c language." StudyMode.com. 11, 2013. Accessed 11, 2013. http://www.studymode.com/essays/c-Language-43998322.html.