Wednesday, 1 July 2015

C Basic Overview of Learn Programming Languages

What is Language:   The Language Can Be Use To " Communication Between User & Computer, in Programming Languages." Now, The Computer Which languages are Understand initial  Machine Language . The Machine Level Language Are Binary Numbers Only( 0,1).

Now a Days , So Many Languages Are Available to Designing Programs. They are Consider 4 Different Types. They Are :

  1. Machine Level Language
  2. Assembly Level Language
  3. Intermediate Level Language
  4. High-Level Language.
Follow Steps Learn Simple Way :

Step:1

Alphabets, Digits, Special Symbols.

Alphabets:-                    A,B-------Y,Z.    a,b-------y,z.
Digits:-                          0,1,2,3,4,5,6,7,8,9.
Special Symbols:-        ~  "  +  =  -  ,  <  >  {  }  %  :  ;  .  ?  \  /  !  @  #   ^  *  _  ' 

Step:2

Constants, Variables, Keywords.

1.Constants:-  There are divided into 2 types.
  • Primary Constants
  • Secondary Constants
1.Primary Constants: integer Constant, Real Constant, Char Constant.
2.Secondary Constants: Array, Pointer, Structure, Union.

1.Primary Constants

Integer :  The Integer is Simply assign values Numbers (1,2,3,4...) only. When integer Using In C Program.  Declare in int a;
int a=5;

Real Numbers: The Real Numbers are can be declare in c program like to this float f;
f=2.22;

Char:  The Char is declare in c program like to this char c;
c='a';

2.Secondary Constants

Array:The Array is Collection Of Same Data Types & Fixed Store Values.Array Can Be Declare as int age[ ];
int x;
int age[10];
age[0]=5;
age[1]=8;
age[2]=4;
     "
     "
     "
     "
age[10]=6;
Here, x is represented  Xo, X1,X2---------X9.

Pointer: The Pointer Can Be Declare as in c program like this symbol (*). The Pointer is variable, Which Contains the address in Memory of Another Variable .
<type>*<pointer name>
    int   *    p;

Structure : Structure is a Collection Variables in Under a Single name. The Structure Can Be Relatively Collection Of information in Single object.

struct student 
{
    int id;
    char name[20];
    int age;
};

Union : The Union Can Store different data types in same memory Location. Unions Provides to Effective way of Using the Same Memory for Multi-Purpose.
union data
alltechprograms{
int a;
float f;
char name[20];
};

Share Information Likes & Comments.!!!

No comments:

Post a Comment