### learn c programming online for free | alpha tech

**C programing language tutorial**

Image source – google |image by- udemy.com |

This is a c++ online tutorial and it is the first part of it so
stay tuned to learn full c programing language in a very easy way.

**Introduction
of c programing language:**

The c is a middle-level language and it is a easy to understand
language so you can easily learn this c programing language.

The c programing language is a most basic programing language
if you want to learn web designing and other higher-level languages then you
need to learn c programing language.

**Keywords:**

The keyword is a specific word which has special meaning in
c programming and it has specific work in c language so you can't use these words
in another way which I explain in the next article.

There is 32 keywords in c programing language:

Auto |
Default |

Break |
Goto |

Double |
Sizeof |

Else |
Volatile |

Int |
Do |

Long |
If |

Struct |
Static |

Const |
While |

Switch |
Case |

Continue |
Enum |

Float |
Cher |

For |
Extern |

Short |
Register |

Signed |
typedef |

Unsigned |
Union |

void |
return |

**Data types in c language:** You need to remember this keyword its help you very much.

The c language has many data types the data type is a size
occupied by the word or number in memory there are mainly 8 data types in c
language.

Data type |
Memory size |

char |
1 byte |

short |
2 byte |

Int |
2 byte |

Short int |
2 byte |

Long int |
4 byte |

Float |
4 byte |

Double |
8 byte |

Long double |
10 byte |

For example, if you use char data type than it needs 1 byte
space in memory.

**Operators:**

**operator** is special
symbols in c programming which is used
for many operations like addition, subtraction, multiplication, division, etc.

There is basically 5 type of operators in c programming language

**(1)arithmetic operators**

op = operator

op. |
Description |

+ |
This an operator is used for addition |

- |
This an operator is used for subtraction |

* |
This operator
is used for multiplication |

/ |
This an operator is used for division |

% |
This an operator is used for modulo division |

++ |
This an operator is used for increment |

-- |
This an operator is used for decrement |

Modulo division this operator will give you remainder of
after doing division it means if you do 8/2 than the division is 4 and modulo
division is 0.

**(2)Relational
operators**

op |
Description |

== |
It is used to show the two operands are same |

!= |
It is used to show the two operands are not
same |

> |
It is used to show the one operand is
grater then other |

< |
It is used to show the one operand is
smaller then other |

>= |
It is used to show the one operand is
grater than or equal to other operand |

<= |
It is used to show the one operand is
smaller than or equal to the other operand |

**(3)logical operator**

Op. |
Description |

&& |
This is a
AND operator if both operand are not zero then the condition becomes true ex.
a && b = false due b=0 |

|| |
This is an OR
operator if anyone operand are not zero then the condition becomes true ex.
a && b = true due a=1 |

! |
This is a
NOT operator this operator is used to reversing the logical state of operator ex. if the answer is true then using this operator you can make it false |

#### (4)bitwise operators

Op. |
Description |

& |
This is a
bitwise AND in this if the a=0 and b=0
then a&b =0 , a=0 and b=1 then a&b =0 , a=1and b=1 then a&b =1 ,
a=1 and b=0 then a&b =0 |

| |
This is a
bitwise OR in this if the a=0 and b=0 then a|b =0 , a=0 and b=1 then a|b =1,
a=1 and b=1 then a|b = 1 , a=1 and b=0 then a|b =1 |

! |
This is a
bitwise NOT in this if the a=0 and b=0 then a|b =0 , a=0 and b=1 then a|b =1,
a=1 and b=1 then a|b = 0 , a=1 and b=0 then a|b =1 |

**(5)Assignment operators **

Op. |
Description |

= |
This operator is used to assign value to the operand ex. a=1 |

+= |
This
operator is used to assigning the value to the addition of two operand ex.
a+=b is equal to a=a+b |

_= |
This
operator is used to assigning the value to
the subtraction of two operand ex.a_=b
is equal to a=a-b |

*= |
This
operator is used to assigning the value to the multiplication of two operand ex.
a*=b is equal to a=a*b |

/= |
This
operator is used to assigning the value to the division of two operand ex. a/=b is equal to a=a/b |

%= |
This
operator is used to assigning the value to the modulo division of two operand ex. a%=b is equal to a=a%b |

<<= |
Left sift
and assign operator ex.a<<=2 |

>>= |
Right sift
and assign operator ex.a>>=2 |

&= |
Bitwise AND
assign operator ex.a&=2 is equal to the a = a&2 |

^= |
Bitwise
exclusive OR assign operator ex.a^=2 is equal to the a = a^2 |

|= |
Bitwise OR assign
operator ex.a|=2 is equal to the a = a|2 |

In this to understand AND, OR, EX-OR, NOT read the below tables.

#### AND

A |
B |
Answer |

0 |
0 |
0 |

1 |
0 |
0 |

0 |
1 |
0 |

1 |
1 |
1 |

#### OR

A |
B |
Answer |

0 |
0 |
0 |

1 |
0 |
1 |

0 |
1 |
1 |

1 |
1 |
1 |

#### EX-OR

A |
B |
Answer |

0 |
0 |
0 |

1 |
0 |
0 |

0 |
1 |
0 |

1 |
1 |
1 |

NOT

A |
B |
Answer |

0 |
0 |
1 |

1 |
0 |
0 |

0 |
1 |
0 |

1 |
1 |
0 |

From the next tutorial you need to download the c language compiler
you can use any compiler.

A compiler is a software which is used to convert the c
programing language to computer language which is 0 and 1 language.

Download c++ compiler

Sublime text editor: https://www.thapatechnical.com/2018/09/how-to-download-sublime-text-editor-3.html?m=1

turbo c++:https://archive.codeplex.com/?p=turboc

You can use any one of them.

Thanks for reading.