You are here:

C++/Structral programing language

Advertisement


Question
why c called as structural programming language? what is the reason

Answer
Because the language (the syntax) forces structure on the program.  You have functions that can run or loop and return, calling other functions that must return in the opposite order called.  And there are variable types that must be declared and there are well-defined rules on how the variables will behaved when mixed and assigned.

Contract this to BASIC (of the 80's, not Visual Basic which is now structured), which has no structure.  You give lines numbers and can gosub and goto and make a mess of the order of code.  Some basics have no types, which leads to difficult interpretation of the code.

Bill

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill A

Expertise

I can answer questions about C++, programming algorithms, Windows programming in MFC (which is C++). I cannot answer questions about STL (templates) and I have no experience with Linux. I do enjoy reviewing code and critiquing it or finding problems in it. I will also gladly show better algorithms or methods if you want to take advantage of that.

Experience

I've developed a commercial embedded C compiler/assembler and IDE with debugger toolset, of which the IDE and debugger are written in C++. I work in the industry writing high tech embedded programs and Windows programs to communicate with the embedded devices.

Publications
Book: Embedded Systems Design using the Rabbit 3000 Microprocessor Authored Chapter 10 in its entirety.

Education/Credentials
BS Computer Engineering

©2016 About.com. All rights reserved.