Python

>python

Other urls found in this thread:

pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html#tag_13_47
twitter.com/NSFWRedditGif

hurr, "nothing" is the same as "the number 0"

I don't want to come off as defending the memesnek, but god damn you're retarded.

Are you retarded?

Ctard detected

Python has its issues. But this isn't one of those issues.

...

second post best post

There's a difference between an empty room and no room. 0 ≠ Null

unless you use C when NULL == 0

What is '\0' in c? Is it different from NULL?

I was halfway through a C book a few months ago. I need to pick it back up.

its actually just 0

C maps it to that to make it easy to add null terminators

Re tard C tard

>C maps it to that to make it easy to add null terminators
ah.

It's the character constant for the null character, which is used to signify the end of a string. However, it is guaranteed to have the integer value of 0 as well.

So THIS... is the power of C toddlers

Yeah, because it's correct. "None" in programming is different than "none" in English. In programming, it means "no answer".

>comparing objects of different types
>surprised with False

are you retarded?

I thought it meant "no memory address"

#define NULL 0
NULL == 0

No shit sherlock.

Meanwhile in JavaScript land

'\t\r\n' == 0
",,," == new Array(4)
'foo' + + 'foo' == 'fooNaN'

Might be as well, but in Python and some MLs, I'm only aware of it being the return value for functions without a return specified which are only used for their side effects. I believe Ocaml usually has unit returns in those cases though.

congratulations you have figured out that null is not a keyword in C

Some others:
'foo' + + '' == 'foo0'
{} + [] == 0
[] + {} == "[object Object]"

Even better, NULL isn't even defined in C by default, it ships in stddef.h

pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html#tag_13_47

yeah that's what it means when something isn't a reserved word

is guaranteed to exist, so you can always use it.
But yes, he said it was not a keyword.

i'm dead

...

zero in C isn't null, it's just zero, there is no null in C.

pointers that point to zero memory address are invalid, and that is used as their non-set state.

That's a perfectly reasonable answer though.

>'foo' + + 'foo' == 'fooNaN'
This one makes sense. You're using the unary + operator to turn 'foo' into a number, but it's not a number so you get NaN.
Then you concatenate foo to NaN.

what ?
NULL == 0 == \0

What are you trying to say?
NULL is just a zero, a define

if you write
int x = NULL;
x = x + 1;

it will work just fine. There is no real null.

'\0' is a char that its int value is zero.

lol matrix bro cool leet hax

did matrix use the green fonts because leet h4xx0r5 used it or did leet h4xx0r5 started using it after watching the matrix

it was blue on black before the matrix, matrix stole the idea and made it green because of of that whole motif thing they had going

actually matrix l33t falling green on black text was inspired by 1995 ghost in the shell credits

>Compares Integer with Boolean
>Surprised by the result

What are you, retarded?

this

Cfags don't understand what a boolean is.

I'm Cfag and I understand.
Where's your god now?

How is None a boolean?

user Samma if I may,

0 can be a form of null, it can represent the lack of therefor by extension 0 could in theory be used in place of null, as 0 of something is considered nothing.

Thank you ^.^

>javascript

why has he written * instead of =?

>lol matrix bro cool leet hax
I was using "green on black" years before the Matrix. Back then I was struggling to learn this OS called "UNIX". And the default colors DE the school was using were burning my eyeballs. Although I don't remember if I selected the color scheme on my own or stole it from one of my classmates.

But I really did enjoy the movie.

And yes, your comment did rustle my jimmies.

var x * 3;
'5' + x - x

does this
x = 0;
x = x * 3;
int('5' + str(x)) - x;

in pseudocode

...

kek

Samefagging Rust shill detected.