How do I join 2 conditions in my if statement? Example if(int i=1 AND int x=0)
? Whats the difference between using && and &?
Asked
Active
Viewed 34 times
0

Fiidisks
- 11
- 2
-
2Does this answer your question? [Difference between & and && in C?](https://stackoverflow.com/questions/49617159/difference-between-and-in-c) – eglease Nov 15 '21 at 15:01
-
1What does your *text book* say? – Some programmer dude Nov 15 '21 at 15:03
-
1Use `&&`. The `&` operator is for bitwise operations. – Tom Karzes Nov 15 '21 at 15:16