Distinctions about C and C++ Programming and the Loop Syntax
Hello Aniee
This is a good question. Your mentioned is between C and C++.
"C" is a language of Computer. Some of programming language is including the "C". It is created by experts in 1972. The lots of computing program indicate it. As external and internal it works very important way. The other way it is a Capital Letter of the English Language (pronounced). UNIX, PHP, Java and some other soft will operate this as a code.
Â
C++ is also a programming language that server Website and Domain internal programs software. All applications of the relating website programming C++ are most powerful soft.
About the Syntax: it is an English Grammar Language program. It will not provide Computer Language.
Distinctions about C and C++ Programming and the Loop Syntax
Â
Distinctions about C and C++ Programming and the Loop Syntax
Broadly Speaking, The difference between C and C++ is the approach that both these languages use to solve any problem i.e
C is procedural language and C++ is an Object Oriented language. Originally, C++ was based on C and maintains much of the functionality of C. But there are a lot of DIFFERENCES too between these languages. For example
1. C does not provide Boolean Type while C++ has it.
2. C++ has a much larger library than C.
and etc.
Syntax of "for loop" is same for C and C++:
                                    for ( init-expr; test-expr; decrement/ increment-expr) statement
- init-expr, if it exists, is executed. Typically this initializes one or more counters, and may also declare them as well.
- test-expr is evaluated. If it evaluates to True or is missing then loop body is executed. Otherwise the for loop exits.
- increment-expr is executed if it exists. Typically this increments/decrements one or more counters. Â
NOTE: If you have single statement to be executed after for-loop then use of Curly Brackets, {}, is optional. In order to execute group of statements after for-loop the statements should be enclosed in curly brackets.
Â