Tuesday, 10 January 2012

Advantages of C Language



Dear Visitors,
    In this lesson we give you knowledge about Advantages of C language. In this lesson we tell you about the importance of C language in all programming languages. As we mentioned in our earlier posts that C language have many advantages on other programming languages. C language is also base of some other languages like
 
Means if you want to learn C++ you must know to how to use C Language?
So,

Download this lesson and learn the advantages of C language and Spread the knowledge and if you like this post don't forget to make a comment on it.
Thanks for your time.
Here is a link:-

Histroy of C Language

Dear Visitors,
        Today we are sharing with you new lesson....
In this lesson you will know about the History of C language......


SO FRIENDS LETS START OUR LESSON
  • History of C language:-
                           C is a general purpose high level programming language. It was developed by Dennis Ritchie at AT&T Laboratories in 1972. It was derived from an earlier programming language named B. B language was developed by Ken Thompson in 1970. This language provided the basis for the development of C.
                  In the past, C language was mainly used for writing system programs (Software) under UNIX operating System. These system software were operating systems, compilers, utility programs etc. The UNIX operating system and its tools were also written in C.
                 Today, C is the most popular programming language. It is preferred by many programmers for developing all types of applications such as Word Processing Programs, Spread Sheet programs, database management systems, games etc. It is also used to write programs for controlling many other electronic devices and industrial processes.
                                 As time passes, new features in the C have been added. The earlier version of C was not totally machine independent. A standard version of C was proposed by ANSI in late 1980s. ANSI stands for "American National Standard Institute". The ANSI developed standard version of the C Language known as ANSI C.
                           Hope this lesson is really helpful for you. So, learn free education and Spread the knowledge.
Thanks for your time.

Structured & Unstructured Programming Languages

Dear Visitors,
        Today we are sharing with you new lesson.....
In this lesson we tell you about the difference between Structured Programming  Languages & Unstructured Programming Langugages..


SO FRIENDS LETS START LEARNING
  • Structured Programming Language:-
                             A programming language in which the entire logic of the program is written by dividing it into smaller units or modules is called "structured programming Language". In C, the smaller units are referred to as functions. A function is written separately to perform a specific task. Each function has a unique name. It is called for execution in the main body of program with reference to its name.

       Program written in structured programming language is very easy to modify and to debug. Today, the most popular and commonly used structured programming language is C language.
  • Unstructured Programming Language:-
                              
                               A programming language in which the entire logic of the program is written as a single continuous (nonstop or unbroken) block is called "unstructured Programming". Program written by following this language is very difficult to modify and to debug..
Hope our this lesson is helpful for you. If you like this post don't forget to make a comment on it...
Learn Free C Programming and Spread the knowledge bcoz.
Sharing is Caring
Thanks for your time.

                              

Monday, 9 January 2012

Language Translator


  • Language Translator:-
                         A Computer understands instructions in machine code (i.e. in the form of 0’s and 1’s). It is difficult to write computer program directly in the machine code. Today, mostly the program are written in high level languages i.e. C, C++, Java, BASIC PASCAL etc.
            The program written in high level language must be translated into machine code with the help of translator (or language processor) before running on the computer. Every language has its own language Translator program. Therefore, language translator is defined as:
                         “The special translator system software that is used to translate the program written in high level language (or assembly language) into machine code is called language Translator or language processor”.

  • Types of Language Translators:-

                   The language processors are divided into three types.
  1. Compiler
  2. Interpreter
  3. Assembler
  • Compiler:-
 
                     The language translator program that translates the complete source program into machine code as a whole is called compiler. The C and C++ compilers are best examples are compilers. The program translated into object code successfully if it is free of errors. If there are any errors in the source code, the compiler specifies the errors at the end of compilation. The errors must be removed before the compiler can successfully compile the source code. The object program can be executed a number of times without translating it again.

    • Interpreter:-
    File:GW-BASIC 3.23.png 
                        The language translator program that translates the source code into machine code statement by statement is called interpreter. It translates one statement of source program into machine code and executes it immediately before translating the next statement. If there is an error in the statement, the interpreter terminates its translating process at that statement. It also displays an error message. The GWBASIC is an example of an interpreter program.

                           The main advantage of interpreter is that it makes easier to detect and correct errors in the source program.

      It is a time consuming process of translating and executing statements one by one.
      Each time the program is run, the source code id translated again. For this purpose you must have a translator program (Interpreter) permanently in your computer.


      • Assembler:-
       
                   The language translator program that translates the program written in assembly language into machine code is called Assembler.
                           An assembler performs the translation process in similar way as compiler. But assembler is the translator program for assembly language (a low level programming language), while a compiler is the translator program for high level programming language.

        Tuesday, 3 January 2012

        High Level Languages VS Low Level Languages

        Dear Visitors,
               In this lesson we tell you about the difference between High Level Languages & Low Level Languages with in some points.
        SO FRIENDS LETS START OUR LESSON

        First of all we tell you about the low level languages.
        • Low Level Languages:-
        1. It is close to Machine language.
        2. It is difficult to learn and use.
        3. It is machine dependent
        4. It does not provide built in functions.
        5. Program written in low level language is faster in execution.
        6. Deep knowledge of hardware is required to learn and use low level languages.
        7. There are few programmers that can write programs in low level languages.
        8. It is difficult to trace out errors in the programs written in low level language.
        9. Low level languages are not commonly used.
        10. The program statement written in low level language is very lengthy.
        • High Level Languages:- 
        1. It is close to human language.
        2. It is easy to learn and use.
        3. It is not machine dependent.
        4. It provides large number of built in functions.
        5. Program written in high level language is slower in execution.
        6. No deep knowledge is required to learn and use high level language.
        7. There are many programmers that can write programs in high level language.
        8. It is easy t trace out errors in the program written in high level language.
        9. High level languages are commonly used.
        10. The program statement written in high level language is very short.
                              
                              Hope this lesson increase your knowledge related to languages. If you like this lesson or have suggestion about this course don't forget to make a comment on it.
        Thanks for your time.

        Source Code & Object Code



        • Source Code:-
                                              The Program instructions written by following the rules of any High Level Language are known as Program Source Code. The source code is like English statements but the computer understands only the instructions in Machine code.
        • Object Code:-
                                      A computer understands only the machine code. The source program written in any High Level Languages (and assembly language) must be translated into machine code before running it on the computer. The translated program into machine code is known as Program Object Code.

        Characteristics of High Level Languages


        • Characteristic of High Level Language:-

                             High level languages have several advantages over Low Level Programming Languages.

        • Easy to learn:-
         
                              The high Level Languages are close to human languages. The instructions written in high level languages are similar to English like words and Statements. This makes the high level languages easy to learn and use.

          • Easy to detect errors:-
                                The logic of the program written in high level languages is very simple and easy. The instructions of program are like English language statements. In case of errors, it is very easy to detect (or find) and remove errors in the Program. It is also easy to modify the Program.

            • Machine Independent:-
                                The program written in High Level Language is machine independent. It means that a program written or compiled on one type of Computer can be executed (run) on another different type of Computer that has different architecture.

            • For Example:-
                                A program written on a Computer using Intel Processor can be run on computer having Motorola Processor (but with a little Modification).
            • Availability of Liberty Functions:-
                               Every High Level Language provides a large number of Built in functions (or library functions) that can be used to perform specific tasks during designing of new Programs.
            • For Example:
                              To computer the square root of a number, the programmer can use the available built in function without writing its own code. This way of writing a program reduces the development time of a program. This software is developed in a very short time.
            • Shorter Program:-
                                     The Program written in high level language is shorter than the program written in low level language. A single instruction of the program written in High Level Language may be equivalent to many instructions of low level programming language.
            • Well defined Syntax and standard:-
                                     Every high level language has a standard syntax. The standard is approved (or established) by international organization. The most popular organization is ANSI (American National Standard Institute). The translator programs are written according to the standard syntax of the language. Therefore, high level languages describe a well defined way of writing programs.
            • Source code is understandable by another programmer:-
                                       The instructions of the program written in high level language are like English language statements. These are written according to the standard syntax of the language. Therefore, a computer programmer can easily understand a program written by another programmer.