Monday, August 05, 2019

C-Programming Introduction |Part #1|

C-Programming


Computer Programming – A program has a set of instructions written in correct order to get the desired result. The method of writing the instructions to solve the given problem is called programming.

Programming languages can be divided into two categories:

Low Level Languages or Machine Oriented Languages: The language whose design is governed by the circuitry and the structure of the machine is known as the Machine language. This language is difficult to learn and use. It is specific to a given computer and is different for different computers i.e. these languages are machine-dependent. These languages have been designed to give a better machine efficiency, i.e. faster program execution. Such languages are also known as Low Level Languages. Another type of Low-Level Language is the Assembly Language. We will code the assembly language program in the form of mnemonics. Every machine provides a different set of mnemonics to be used for that machine only depending upon the processor that the machine is using


High Level Languages or Problem Oriented Languages: These languages are particularly oriented towards describing the procedures for solving the problem in a concise, precise and unambiguous manner. Every high-level language follows a precise set of rules. They are developed to allow application programs to be run on a variety of computers. These languages are machine-independent. Languages falling in this category are FORTRAN, BASIC, PASCAL etc. They are easy to learn and programs may be written in these languages with much less effort. However, the computer cannot understand them and they need to be translated into machine language with the help of other programs known as Compilers or Translators.

Programming techniques: - There are two type of programming techniques commonly used:-
  1. Procedural Programming
  2. Object Oriented Programming (OOP)


Procedural Programming – In Procedural Programming, for a given problem, variables are identified and instructions are written using the variables in the correct sequence to get the required result.
                        The procedural Programming method is commonly used to solve scientific and engineering problem involving variables.

Object Oriented Programming (OOP) – In Object Oriented Programming, Objects which have data related to a person or item are used. The program can be written using many functional blocks. The functional block contains instructions similar to procedural programming.
                        Object Oriented Programming method is commonly used to develop software packages. C++ is one of the commonly used object-oriented programming languages.

SHIELD-XPRO
SHIELD-XPRO

जान के क्या करोगे ?

No comments:

Post a Comment