6
C++ PROGRAMMING 1. Who is written C++? Bjarne Stroustrup is a Danish computer scientist, most notable for the creation and development of the widely used C++ programming language. He is a Distinguished Research Professor and holds the College of Engineering Chair in Computer Science at Texas A&M University, a visiting professor at Columbia University, and works at Morgan Stanley as a Managing Director in New York 2. State statements below and given an example application in C++ Program. a. Go to -Go to statement is used for altering the normal sequence of program execution by

c++ programming

Embed Size (px)

DESCRIPTION

c++ programming

Citation preview

Page 1: c++ programming

C++ PROGRAMMING

1. Who is written C++?

Bjarne Stroustrup is a Danish computer scientist, most notable for the creation and development of the widely used C++ programming language. He is a Distinguished Research Professor and holds the College of Engineering Chair in Computer Science at Texas A&M University, a visiting professor at Columbia University, and works at Morgan Stanley as a Managing Director in New York

2. State statements below and given an example application in C++ Program.

a. Go to

-Go to statement is used for altering the normal sequence of program execution by transferring control to some other part of the program.

Page 2: c++ programming

b. While

-The while loop is checks whether the test expression is true or not.

Page 3: c++ programming

c. Break and Continue

-The break is used in terminating the loop immediately after is encountered, while continue is sometimes desirable to skip some statements inside the loop.

Break

Continue

Page 4: c++ programming

d. While True

-The while true is will stop once control flows through break.

e. Do/While

The do/while executes one or more times, depending on the value of the termination expression.

f. Jump/Loop

-Jump loop is forces transfer of control expression of the smallest enclosing do, for, or while loop.

Page 5: c++ programming

g. If/else

-It is a statement that used to make one-time decision in c++ programming, that is execute some code and ignore some codes depending upon the test expression.