Professional Documents
Culture Documents
Code
Code
In if,else if,else ladder only one condition is executed. 2 else if can’t be executed.After execution of
any one curson comes to code outside this whole ladder i.e.after else.
Continue takes to next iteration but still remaining in loop (continue ke baad vala code null & void
hai vo next iteration ke lie run karega
. In effect, *&a is equivalent to a, because it simply gives us the value of the variable a.
However, using *&a can be useful in some situations, such as when we want to pass a
variable by reference to a function that takes a pointer argument.
If a break statement is used inside a nested if-else statement that is inside a double for loop,
it will only exit the innermost for loop that it is inside of. The break statement will not exit the
outer for loop or any other loops that may be present in the code.
Ex:
Break inside the inner loop exits the inner loop’s iteration only.
on
convert one of the operand on both side of float operands into float as in this case sum is made to
double to make it compatible with double data type of k;
ceil aur floor ka c++ mein chakar thoda alag hai need to use double data type argument to get ex::
ceil(11/2)==6 else it gives 5 in c++::EXAMPLE:
Ceil in c is floor+1