(a) The three types of loops available in C are for, while, and do-while.
(b) A break statement takes the execution control out of the loop.
(c) A continue statement skips the execution of the statements after it and takes the control through the next cycle of the loop.
(d) A do-while loop is used to ensure that the statements within the loop are executed at least once.
(e) The ++ operator increments the oprand by 1, whereas, the — operator decrements it by 1.
(f) The operator +=, *=, /=, %= are compound assignment operators. They modify the value of the operand to the left of them.
Decision Control Statement in C DCA Computer Course Trading Account Financial Statement
What is C
Here, you will study about What is C language
C is a programming language developed at At & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Rtchie. In the late seventies C began to replace the more familiar languages of that time like PL’I, ALGOL, etc. No one pushed C, It wasn’t made the ‘official’ Bell Labs language. Thus, without any advertisement, C’s reputation spread and its pool of users grew. Ritchie seems to have been rather surprised that so many programmers preferred C to older Languages like FORTRAN or PL/I, or the newer ones like Pascal and APL. But that’s what happened.
Possibly why C seems so popular is because it is reliable, simple and easy to use. Moreover, in an industry where newer languages, tools and technologies emerge and vanish day in and day out, a language that has survived for more that three decades has to be really good.
An opinion that is often heard today is–”C has been already superseded by languages like C++, C# and java, so why bother to learn C today”. I seriously beg to differ with this opinion. There are several reasons for this. These are as follows: