C Example to subtract two integers without using Minus (-) operator
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Output
Here, sum = a+~b+1 i.e. variable a has its normal value, but the value of variable b is complemented i.e. '2' becomes '-3'.
a+~b+1= 10+(-3)+1=10-3+1=8.
need an explanation for this answer? contact us directly to get an explanation for this answer