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.
1 : one that operates: such as. a : one that operates a machine or device. b : one that operates a business. c : one that performs surgical operations. d : one that deals in stocks or commodities.
In mathematics and computer programming, an operator is a character that represents a specific mathematical or logical action or process. For instance, "x" is an arithmetic operator that indicates multiplication, while "&&" is a logical operator representing the logical AND function in programming.
operator, in mathematics, any symbol that indicates an operation to be performed. Examples are Square root of√x (which indicates the square root is to be taken) and d/dx (which indicates differentiation with respect to x is to be performed).
==) The strict inequality operator ( !== ) checks whether its two operands are not equal, returning a Boolean result. Unlike the inequality operator, the strict inequality operator always considers operands of different types to be different.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With