+ 3
can someone please tell me what the exclamation mark does?
8 Answers
+ 4
wait does the != mean not equal
+ 3
an exclaimaion mark simply puts a NOT in front of the equal to sign.
and it means "not equal to".
+ 1
gives opposite of something
+ 1
it is also one of the operator like + - *
! - explains not
if compare any situation this came into the picture
Ex
if (n!=5)
{
print " hi"
}
else
{
print 0
}
For " n "values except 5
all values it will execute if statement
+ 1
it's nothing but != means not equal .it is moreover used to check the conditions
- 1
Yes, you are right.
Makes "not equal to"
- 1
makes it a not equal to.
- 1
an exclamation mark followed but equal to sign means not equal to