Wednesday, June 16, 2021

Object Paradigm Oriented Programming in C++ / object oriented programming / History of C++/ paradiagram in c++/C devolop, Operating System, Unix operating system, Assembly language, popular in world, Programming language.

 Object Paradigm Oriented Programming 

  • Two programmers, Brian Kernighan and Dennis Ritchie developed a new language called C, in 1972. 
  • C language was designed for writing operating systems. 
  • UNIX operating system was developed using C and assembly language.
  •  C language was very simple and flexible. 
  • Very soon it was used for many different types of programs and it quickly became one of the most popular programming languages in the world. 
  • C has one major problem that is; it is procedure-oriented language. 
  • This means that in designing a typical C program, the programmer would start by describing the data and then write procedures to manipulate that data. 
  • In C more emphasis is given on doing things rather than data.

Sunday, June 6, 2021

Conditional control statements/selection control statements/decision control statement.

 Decion control statements:

When dealing with section statements,there are generally three versions:

1 one-way

2 two way

3 three way

One way decision statements do a perticular thing or they don't .

two way decision statement can do one think /do another.

Multi-way decision statements can do of many different thinks depending on the value of an expression.

1] if  [one way decision ]

One way decisions are handled with an if statements that either do some particular things. 

The decision is based on a text expression that evaluates to either true or false. 

If the test expression evaluates of true, 

The corresponding statements is executed; 

If the test expression evaluates to false,

Control goes to the next executable statement. 

Following syntax of one way decision statement:

Syntax=

        If [Expression ]

        {

            Statements;

        }


if else


If-else-if Ladder in c-programming


 if-else-if Ladder:

 A common programming construct is the if-else-if ladder, sometimes called the it- else-if staircase because of its appearance.

Syntax:

           if(Expression-1) 

                  statement-1; 

           else if(Expression-2) 

                         statement-2; 

                    else if(Expression-3) 

                                statement-3; 

                                 - - - - - - - 

                                 - - - - - - -

                                else if(Expression-N)

                                           statement-N; 

                                   else 

                                           statement-F;

The expressions are evaluated from the top downward .

As soon as a true expression is found, the statement associated with it is executed and the rest of the ladder is bypassed .

If none of expression are true, the final else is executed. 


Object Paradigm Oriented Programming in C++ / object oriented programming / History of C++/ paradiagram in c++/C devolop, Operating System, Unix operating system, Assembly language, popular in world, Programming language.

  Object Paradigm Oriented Programming  Two programmers, Brian Kernighan and Dennis Ritchie developed a new language called C, in 1972.  C l...