Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

The operation of 1 int values gives int;

Float +int =float;

Float +float =float;

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.

Switch case dekhna hai

Break exits LOOP completely.

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

Pow returns double data type

Compiler passes arguments in right to left order.


function can’t change values in int main function

. 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.

To make it exit outer loop also insert another break also:

Brilliant methods to check ifa number is a palindrome


More EFFICIENT:

No need to use IN_BUILT to_string function:

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:

Floor is greatest integer function ;

Ceil in c is floor+1

You might also like