Tuesday 21 March 2017

What is Programming ... ? And Programming Errors Special Instructions For Beginner.

Programming:

               Programming is a way of communication between users and computer. Programming language is a set of words and symbols that enable a programmer to communicate to a computer. Each language has its own rules and design to purpose for some specific tasks. Example

  • Scientific applications.
  • Business Solutions.
  • webpages.


There are many languages are use to create computer programs.

Programming Errors:

              The errors in a program is called BUGS, and the way of finding and removing these errors is called DEBUGGING .
Types of errors.
  1. Syntax Error.
  2. Run time Error.
  3. Logical Error.

it is vert important for understand this errors and reasons, because it is helpful for you to removing it.
"Compiler"
            Compiler is a translate use to translate HLL (high level language into low level language).

Syntax Error:

   A syntax occur when the program violate one or more than one rules of  HLL. but it is easy to detect because compiler locate the location and the type of error so it is easy for programmer to remove it. When this error is occur a diagnostic message is show in your display screen. compilation of your program is only successful when your all the written program is error free.
For Example in C Language:
  
                 True Statement : printf(" How to do is possible ");
                 False Statement: printf(" How to do is possible ")

in this example semicolon is missing so violation in language so it is called Syntax Error.

Run-time Error:

  A Run-time error is occur when the program  directs the computer to perform an illegal operation. this error is occur during the execution of program. compiler cannot detect this error in compilation.

Example: Any Number Divided By Zero.

Logical Error:


 In programming logical error is very difficult to detect and remove because in the case logical Error compiler cannot detect it and also compiler cannot locate the location and type of error. in the case of logical error you must have read all the code one by one to locate and remove this error so it is time consuming method.

Example: Put Wrong Input.

For More Latest and helpful tips of IT, and Social Media or need any kind of help contact me feel free in facebook ↓ here down our page like and contact us.










No comments: