I am going through a C code that I did in one of my assembly MIPS classes and I dont know what one of the operators mean:
if (TOKEN[0] <> symTab[$a0])
Thats the line. what does the <>
mean?
Thanks.
It looks like "not equal to" was intended.
The correct operator in standard C is !=
.
That code is not C and in fact it's a Pascal like syntax. The use of the NOT EQUALS operator <> and the hex literal prefix $ indicate that.
It's another way of representing IS NOT or NOT EQUAL . The valid operator is !=
in C.
You can use <>
in SQL. I posted so late because I couldn't remember the language that used it.
EDIT: Actually it was Pascal as well that I was thinking of that also uses <>
, as David mentions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.