English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

The answer would be clear if you have written some piece of codes in old FORTRAN or BASIC (such as GW-BASIC) languages. These languages are based on GOTO statement or similar statements. In these types of unstructured languages, you may use a piece of code many times with different meanings and in different passes of program flow which was naturally error-prone and difficult to trace and debug. You might use arbitrary GOTO statements to transfer your code to virtually any point of the program even from the middle of some function to the endpoint of another function in the hope that you would get rid of some extra coding and make the programming task some easier.

Structured programming was first introduced to almost permanently eliminate goto and "goto-ism" from programming. It was first declared that with certain programming structures such as IF, IF-ELSE, WHILE, REPEAT-UNTIL (or as in C, DO-WHILE) and FOR, you may successfully and efficiently do whatever you can do otherwise with gotos. Because this new way of programming conducted the minds of the programmers to use a few set of structured blocks, it was called "structured programming".

2007-06-04 07:14:24 · answer #1 · answered by ʃοχειλ 7 · 0 0

A structured prorgram is built by breaking down the program's purpose into smaller pieces that then become functions within the program.Each function have its own data and logic.It is the idea behind C program.That's why c language is called structured programmig language...

2016-05-20 23:49:59 · answer #2 · answered by ? 3 · 0 0

Because you can write your code segregating related segments into smaller easy to understand sections. This enhances reusability of code by easily allowing edit free coping of code sections between programs. It enhances maintainablility by making the code easier to read. You can understand the logic in smaller sections of code with out having to wade through the entire code by just smaller sections.

2007-06-04 01:35:15 · answer #3 · answered by MarkG 7 · 0 0

Becuase everything in "c" is structured and moduled into functions.

2007-06-04 02:34:28 · answer #4 · answered by GS 3 · 0 0

Here is the explanation.

2007-06-04 00:55:05 · answer #5 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers