Same ones as in C or C++. Just remove undefined and throw in 0.0, 0.0f, 0u, 0l, 0ul, 0ull and 0ll. There are some implicit conversions as well just to make it more fun.
In logic, a three-valued logic (also trinary logic, trivalent, ternary, or trilean, sometimes abbreviated 3VL) is any of several many-valued logic systems in which there are three truth values indicating true, false and some indeterminate third value. This is contrasted with the more commonly known bivalent logics (such as classical sentential or Boolean logic) which provide only for true and false.
In three unnumbered pages from his unpublished notes written before 1910, Charles Sanders Peirce developed what amounts to a semantics for three-valued logic. This is at least ten years before Emil Post's dissertation, which is usually cited as the origin of three-valued logic.
Computer need programming and programming need computer.
except my university that expected me to write a fully functional project source code in a paper that take 4 page of code but mostly consist of the same code copy and page but I can't copy and paste cause it's a a paper.
It's an arduino line follow robot project. the code has a lot of boiler plate, there are 6 pin from motor driver, 2 pin from ultrasonic sensor, and 3 pin from light sensor, in total of 11 pin.
I'm required to write #defined for every pin (like #define ULTRASONIC 7) then in the setup I have to called pinMode again for every pin , so that 22+ line already.
in loop it's mainly just if-else for every combination of value from light sensor, there are 3 light sensor each can be 0 or 1, so in total there are 8 combination.
Each of those 8 combination control 2 motor, for each motor you need 3 line of code (2 for direction, 1 for speed) so the loop part take up 823 = 48 line, excluding ultrasonic part which take up additional 4 line.
In total there are 70+ line of code, while It isn't much in computer it definitely is on paper.
and I first encounter this in exam so I have to do all of this on paper alone within 2 hours. In hindsight I could probably reduce code size by putting in function but It's not worth the time loss when rushing in exam.
103
u/[deleted] Dec 18 '19
I'll do you one better: there's a difference between 0 and null... sometimes.
4
u/jrsstill Dec 18 '19
What show is this from?
26
u/Warzombie3701 Dec 18 '19
There's a difference between = and ==
15
u/[deleted] Dec 18 '19
What did I learn in Computer Science classes? Nothing about computers, stuff about programming, but mostly how to avoid NullPointerException.
1
u/AlisaPatronus Dec 18 '19
1000101
1
u/AlisaPatronus Dec 18 '19
1000101
1
u/useless_idiot_man Dec 18 '19
1111
1
u/PM_ME_HAIRLESS_CATS Dec 18 '19
Huh. I learned what a Linked List is.