+ 1
Can someone explain the operator && ?
I have seen the operator && been used but I still don't know why and what is used for
2 odpowiedzi
+ 1
It is a logical and operator which helps us to take some decisions
eg:-
If your salary is 30000 and you are 20 years old then you are able to take loan
Code:
If (sal >=30000 & & age >=20){
printf("you are eligible for loan")
}
else
printf("not eligible")
+ 5
&& (And) operations are performed by this operator.
Example. 1 && 0 = 0
1 && 1 = 1.