can someone please tell me what the exclamation mark does? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

can someone please tell me what the exclamation mark does?

6th Jul 2016, 4:17 AM
Emilien Chavanne
Emilien Chavanne - avatar
8 Answers
+ 4
wait does the != mean not equal
6th Jul 2016, 4:19 AM
Emilien Chavanne
Emilien Chavanne - avatar
+ 3
an exclaimaion mark simply puts a NOT in front of the equal to sign. and it means "not equal to".
28th Sep 2016, 3:08 PM
Somya Bhupal
Somya Bhupal - avatar
+ 1
gives opposite of something
8th Jul 2016, 10:35 PM
Minutes Play
Minutes Play - avatar
+ 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
19th Dec 2016, 7:20 PM
Ugra Narasimha
Ugra Narasimha - avatar
+ 1
it's nothing but != means not equal .it is moreover used to check the conditions
10th Jan 2017, 3:37 PM
joffie
joffie - avatar
- 1
Yes, you are right. Makes "not equal to"
6th Jul 2016, 5:49 AM
Ajay Kulkarni
Ajay Kulkarni - avatar
- 1
makes it a not equal to.
8th Jul 2016, 1:17 PM
James 'the bunyip' Ringhof
James 'the bunyip' Ringhof - avatar
- 1
an exclamation mark followed but equal to sign means not equal to
10th Jul 2016, 12:30 PM
Nitin Lakhwani
Nitin Lakhwani - avatar