Learn C programming in Bengali
The break Statement
The break Statement
You can add a break statement at the end of the statement list following every case label, if you want to exit the switch construct after the statements within a selected case are executed.
Nested if Statements
Nested if Statements
As you saw in the previous sections, one if statement enables a program to make one decision. In many cases, a program has to make a series of decisions. To enable it to do so, you can use nested if statements.
The if statement
The if statement
If life were a straight line, it would be very boring. The same thing is true for programming. It would be too dull if the statements in your program could only be executed in the order in which they appear.
- Read more about The if statement
- 6 views
Mathematical Functions in C
Mathematical Functions in C
Basically, the math functions provided by the C language can be classified into three groups:
Trigonometric and hyperbolic functions, such as acos(), cos(), and cosh().
Enabling or Disabling the Sign Bit
Enabling or Disabling the Sign Bit
As you know, it's very easy to express a negative number in decimal. All you need to do is put a minus sign in front of the absolute value of the number. But how does the computer represent a negative number in the binary format?