Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You can't assign (single equals) 120 to the factoral of 5, which is a compile time constant of 120.
-
khanna981437y@AlexDeLarge the later one is simple c language.
And the first one is what we are taught at elementary school "maths" -
Pizza35357y@SoulSkrix @AlexDeLarge
Nothing prevents you to have both factorial and not-eq in a new programming language you're designing.
You just have to be careful about the tokenization of the symbols.
Maybe the explanation of the OP was wrong, but it makes sense if you assume both strings are snippets of the same programming language, whatever it is.
Its strange how a space can change the meaning of a statement.
Where 5! = 120 and also 5!=120, both are true.
rant
# wk71#devrant