assignment c++ (word) - mohammad hanifzam bin ahmad kamal

16
ASSIGNMENT : C++ PROGRAMMING QUESTIONS 1) Who is Written C++ ? Bjarne Stroustrup ( Danish: [ˈbjɑːnə ˈsdʁʌʊ̯ˀsdʁɔb] ; [2] [3] born 30 December 1950) 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. 2) State statements below and give an example application in C++ Program. a. Go to A goto statement provides an unconditional jump from the goto to a labeled statement in the same function. Example: #include <iostream> using namespace std; int main () { // Local variable declaration: int a = 10; // do loop execution

Upload: piejam

Post on 10-Nov-2015

25 views

Category:

Documents


0 download

DESCRIPTION

Assignment C++ (Word)

TRANSCRIPT

ASSIGNMENT : C++ PROGRAMMING

QUESTIONS1) Who is Written C++ ? Bjarne Stroustrup (Danish:[bjn sdsdb];[2][3]born 30 December 1950) 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.

2) State statements below and give an example application in C++ Program.a. Go to A goto statement provides an unconditional jump from the goto to a labeled statement in the same function.Example:#include using namespace std; int main (){ // Local variable declaration: int a = 10;

// do loop execution LOOP:do { if( a == 15) { // skip the iteration. a = a + 1; goto LOOP; } cout