top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What does it mean "C is a structured programming language?"

+1 vote
416 views
What does it mean "C is a structured programming language?"
posted May 2, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

It usually means a language that is "block structured", having blocks of code that are treated as a unit for purposes of if/then/else. Blocks are delimited by things like BEGIN/END, DO/DONE, IF/ELSIF/ENDIF, IF/FI, or now commonly curly braces { your; code; here; }. Prior to this, IF's tended to be plain:

IF GOTO A

Where label A can above or below, anywhere in the translation unit, and that was all there is to the IF.

There was also the more notorious Fortran "computed goto" (from memory):

IF A, B, C

Where A, B and C are labels where ever they may be corresponding to a negative, zero, or positive evaluation result of the expression.

"Structured" languages are characterized by not (usually) needing labels for if operations and loops. Now you can guess C is considered structured language because of the fact that it does not force/require goto (labels) statement for the loops or conditional operation.

answer May 2, 2016 by Rajan Paswan
Similar Questions
+1 vote
+2 votes

Does anyone know how to rotate a 2d matrix circularly for n times in suppose C language...? It would be a lot of help if you could explain with code.

Hint : Each time each row vector needs to be rotated one element to the right relative to the preceding row vector.

+1 vote

I was searching the differences in normal C-lang multithread program and a multicore programming. Can any one clarify the difference and how the "parallelism" OR "execution-speed" is achieved form multicore programming.

Using the thread attribute we can set the affinity(in which core he has to run) to the thread, not not getting the exact usage of multicore programming.

One more question how to access the common(global data) memory in multicore programming, will synchronization adds delay in execution? If yes then what is the use of multicore programming

...