Monday, January 28, 2019

Basic of c language

Basic of c language

The general syntax of c language is-
#include <stdio.h>
int main()
{
   
}


Firstly we should know about the data type

There are several data type

1.int
Int is used for integer variable
2.char
Char is used for char value
3.float -
Float is used for decimal value
Basically they define what type of data .And then do operation on it.
Variables -
Variable is a word that store value.
Header file-
For example-
#include <stdio.h>
It means that what type of operation
We do and that operation is define in that header file

Terminating semicolons-

; Is mean that statement is end.
Int main( )
Is should be added in every c program.
Size of data type-
TypeStorage sizeValue range
char1 byte-128 to 127 or 0 to 255
unsigned char1 byte0 to 255
signed char1 byte-128 to 127
int2 or 4 bytes-32,768 to 32,767 or -2,147,483,648 to 2,147,483,647
unsigned int2 or 4 bytes0 to 65,535 or 0 to 4,294,967,295
short2 bytes-32,768 to 32,767
unsigned short2 bytes0 to 65,535
long4 bytes-2,147,483,648 to 2,147,483,647
unsigned long4 bytes0 to 4,294,967,295
Keywords-
Keywords is that word whose meaning is already define in c .
Keywords in C Programming
autobreakcasechar
constcontinuedefaultdo
doubleelseenumextern
floatforgotoif
intlongregisterreturn
shortsignedsizeofstatic
structswitchtypedefunion
unsignedvoidvolatilewhile

Best Introduction to C language

Introduction to C language

c language is a programming language that 
is used to solve problem.to make operator system.etc
If you are beginner in programming your language should be c.
Becuase it provide you all the basic concept of other languages like --python
It provide you basic error understanding ability.
Before moving on programming you should know about what topic is in c language.
If you want to do any field of computer science you should learn c in very effective way.
I promise you after reading whole blog you feel like a programmer.

1.Basic

in this section we learn about type of data .thier size .

2.Arithmatic operator 

in this section we learn about simple +,-,×,%,/

3.For loop

 4.while loop

5.do -while loop

 6.Array

 7.function

8.pointer

 9.Sorting

in this section we will talk about 
1.quick sort
2.selection sort
3.insertion sort

 10.searching

1.linear searching
2.binary searching

 11.link list 

1.singly link list
2.doubly link list
3.circular link list

12.dynamic programming in c

This is the mostly covered topic in c.
Every language is depend upon c . Because c is the root language of other programming language.

History of c language-

History of C Language. ... C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in the U.S.A. Dennis Ritchie is known as the founder of the clanguage. It was developed to overcome the problems of previous languages such as B, BCPL, etc.