+ 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

13th Jul 2019, 6:03 PM
Aivic
Aivic - avatar
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")
13th Jul 2019, 6:23 PM
Ujjawal Dubey
Ujjawal Dubey - avatar
+ 5
&& (And) operations are performed by this operator. Example. 1 && 0 = 0 1 && 1 = 1.
13th Jul 2019, 6:10 PM
Sujithra