Saturday, 18 April 2015

PART 3

Data Type: Data type is nothing but the type of data which tells the what is the maximum and minimum value of that data and which operations can be done on that data. There are basically two types of Data Type.
1. Built in or Primitive
2. User Defined or Non-Primitive
Below image make you understand this-
In the above figure I did not show the User Defined because you need some basic knowledge of the coding to understand that don't be panic I will cover the topic later...
Now to Implement or Declare a variable as Integer, C provides a keyword for that 'int' ,'long int','short int', 'signed int', 'unsigned int'  and for reals it provide 'float','double','long double' and for characters it provide 'char' .
Every type has its own boundary of value. i.e., int has the minimum value of -32768 and the maximum value is +32767 but for unsigned int it is 0 to 65535. int is generally means signed int. and char which mean signed char has -128 to +127 and for unsigned char it is 0 to +255 and other data types also has limits of value.
This topic of data type is incomplete without knowing its format specifiers. So, let discuss some basic things about format specifiers. Format Specifiers are some group of characters followed by '%' which tells the compiler to store data in memory with particular format or type and after seeing the format specifier compiler treat the value as per its format and reserve bytes of memory for it.
The common format specifiers are given below-
 Many more format specifiers are available in C, I will discuss it later in time

Thursday, 16 April 2015

PART 2

I am not going to tell you who is the creator of this language this is worthless but what he created is very important...
So let start the C...
A language like to make things...Think about a dish we eat it with taking its every taste..have we ever think how it is made...for those who think that it is the right place to know...Software is likely to be same. Now as we know we need something to create any thing like furnitures we need hammer, pins etc.. like that when we are going to create a program we need some basic raw things. In c they are tokens which are the every independent smallest part of a code..
There are only few kinds of Tokens namely..
1. Literals
2. Identifiers
3. Punctuations
4. Keywords
5. Operators
To remind it I form a short name for them as LIPKO
These tokens are the bricks for the wall. So we have to know details about these tokens.

Literals:
Literals are the constant (Whose value can't be changed) values. Let see it in details-
First we think how many types of data...for now we divide data in two types
1. Numbers
2. Characters.

So the numbers like 1,2,3,5.8,...any type of numbers are numeric literals and like single characters or words are character literals like 'a','b','c',"we",etc.

Identifiers:
Identifiers are the characters or group of characters by which we can make identity of a thing.
When we store data in computer memory we don't know where actually it is stored by the computer mean the physical address of the item..so to access or use the item we locally name that location.
This name is the identifier. we use it to declare variables (whose value can be  changed when needed) to store constant values by default.

Punctuations:
Punctuations are the special characters like ; are used to do different task like statement terminator..

Keywords:
 Keywords are the words whose meanings are predefined to the compiler of the language. In C there is many keywords presents usually 32 keywords present in C. We can't use them in another meaning which they carry.
Usually in Turbo C , words which takes white colour by default are the keywords.  Some examples are given below-
auto break char double enum float goto and so on....

Operators:
Operators are the special symbols which works on some operands and produce some results.
Basically there are 8 types of operators. We can categorize operators in two way-
1. Operators Basis On Their Work.
2. Operators Basis On Operand Used.
Below figure will make you understand this-
We will discus the operators one by one later..







Sunday, 9 December 2012

C IS THE LANGUAGE WHICH MAKES A BRIDGE BETWEEN YOU AND THE CORE OF YOUR SYSTEM....