How to start with C programming for beginners?
Hi guys ,I'm from Master Programming and in this post I'm going to tell you that how you can learn C programing just in few minutes .Now after watching this content ,you will be able to make any program related to C programming just like swapping of two numbers, adding two numbers, Fibonacci series and many more.
So, don't miss this opportunity and learn programming till end in very easy steps. Without wasting our precious time we should start learning!
So guys, first and important step is to install the software, I am mentioning some of the names of software which are free to download :
1.Dev C++
2.Code::Blocks
3.Visual C++ 2010 Express
4. Net-beans
5. Sublime Text Editor and many more.
But as a beginner I will recommend you to use only Dev C++ as it is the simple software to operate. And the guy who is at the first step of his coding can easily understand the working of Dev C++.
Let's Start With Some Background of C:It was designed and written by Dennis Ritchie in 1972 at AT&T's Bell laboratories of USA.
Main characterstics of C language are:
- Small size
- Extensive use of function calls
- Loose typing - unlike PASCAL
- Structured language
- Low level (Bit-Wise) programming readily available
- Pointer implementation - extensive use of pointers for memory, array, structures, and functions.
- C helps in developing structured programs.
CHARACTER SET
Like every language, C also has its character set. A character may be a letter, alphabet, digit, or any other symbol which is generally used to form meaningful words ,numbers ,expressions.
KEYWORDS
C generally contains 32 keywords that are predefined ( means you can't use them for your own name purpose) . All keywords are written in lowercase ( do not starts with capital letter) .They are as following:
| auto | break | case | char |
| const | continue | default | do |
| double | else | enum | extern |
| float | for | goto | if |
| int | long | register | return |
| short | signed | sizeof | static |
| struct | switch | typedef | union |
| unsigned | void | volatile | while |
CONSTANTS
A constant is that quantity which remains unchanged during the execution f program. C supports many types of constants;
1.NUMERIC CONSTANT
2.CHARACTER CONSTANT
NUMERIC CONSTANT
This constant is further divided into other two types:
1.INTEGER CONSTANT
2.REAL CONSTANT
INTEGER CONSTANT
This type of constant refers to the constant without the decimal. Example
s of integer constant are 12,0,33,678 etc.
REAL CONSTANT
They are also known as floating constant( floating means decimals) . Examples of floating constants are 12.2,0.003,234.5 etc.
There is another type of constant also known as EXPONENTIAL CONSTANT
Under this constant all the exponential value are placed.
Examples of 0.5e3,1.2e7 etc.
SINGLE CHARACTER CONSTANT
A single character constant always contains a single character . Example of single character constant is 'a', 'B', 'e' etc.
STRING CONSTANT
A string constant contains the combination of many single character joined together. Example of string constant is as following:
"mine","2002" etc.
VARIABLES
A variable is a data name that is used to store a data value. Their are some of the naming rules for a variable:
1. A variable can consist of letter, digits but cannot start with underscore(_).
2.It should not start with digits.
3.keywords and not allowed.
4.The uppercase and lowercase variables will be treated different(Like SUM is different from sum).
Examples of variables are: sum , average etc.
Structure of a C program
•
Every C program consists of one or more functions. – One of the functions must be called main. – The program will always begin by executing the main function.
• Each function must contain: – A function heading, which consists of the function name,
followed by an optional list of arguments enclosed in
Dept. of CSE, IIT KGP
followed by an optional list of arguments enclosed in
parentheses. – A list of argument declarations. – A compound statement, which comprises the remainder of the
function.
I want to tell you guys that I will upload all the necessary link's in the description . Remember to drop your comments , questions and doubts below . And will se you in the next ones with new and interesting content.Master's


Comments
Post a Comment
If you have any doubts , please let me know ....