Explain in a line or two

closed account (1Ujz3TCk)
Why are
!
and
%
used in c++
Last edited on
! means not:
1
2
!true == false
!false == true

% is the reminder of the division
23%2==1

calculation:

1
2
3
4
5
6
7
25 : 2 = 12
2-
2
0
 5-
 4
 1
Last edited on
closed account (1Ujz3TCk)
thanks BAZZY.thank u very much
Topic archived. No new replies allowed.