,About this EBook
These tutorials are made for those people who have absolutely no pre knowledge of
programming. In these tutorials you will need only a basic knowledge of computers. All
the topics are covered from scratch and in the last we will cover some advanced topics
too.
I have tried my best to provide correct and useful information in this eBook. Still if you
find any mistake or anything missing then please contact me. Send you feedback at
.
You can also contact me if you have any queries regarding any topic or concept of C
language. I will try my best to help you.
For more tutorials and programs visit www.thecrazyprogrammer.com
Reference
I have taken Let Us C by Yashavant P. Kanetkar and Programming in ANSI C by E
Ballagurusamy as a reference for writing this eBook.
Copyright
All the content of this ebook is the property of thecrazyprogrammer.com. This ebook
is written for educational purpose and available freely. No part of this ebook can be
reproduced or redistributed in any form for money purpose.
All the Best and Happy Coding!!
TheCrazyProgrammer.com Page 2
, Table of Contents
1. Getting Started Page 4
2. Decision Control Structure Page 25
3. Loop Control Structure Page 45
4. Case Control Structure Page 65
5. Functions & Pointers Page 75
6. Data Types Revisited Page 98
7. Preprocessor Directives Page 105
8. Arrays Page 111
9. Strings Page 123
10. Structure Page 143
11. Console Input/Output Page 152
12. File Handling Page 155
13. Dynamic Memory Allocation Page 165
TheCrazyProgrammer.com Page 3
, C Programming Overview
What is C language?
Well the answer is quite simple. It’s a procedural programming language which was
designed and written by Dennis Ritchie at AT & T’s Bell Labs in 1972. In early 70s very
frequently new programming languages were introduced. But after the launch of C, it
slowly replaced the old languages like ALGOL. Actually no one advertises this language
and even Ritchie was surprised that so many peoples were using C language. Till now
many languages has come. But the popularity of C is not changed till now. The main
reason behind it is that it is still fast, reliable and easy to use.
Ken Thompson and Dennis Ritchie
Why C should be your first programming language?
Seriously many people claim that now one should start its programming journey through
C++, C# or JAVA. Well I think nobody will be comfortable while studying the advanced
concepts like OOPS from the start.
Applications
C language has widely uses, some main uses are given below.
1. Used to develop softwares that control embedded systems. Examples of some
embedded systems are washing machine, microwave oven, etc.
2. For creating computer applications.
3. UNIX operating system is developed in C language.
Compilers
The first question which will arise in our mind. What is a Compiler?
TheCrazyProgrammer.com Page 4