Pelles C forum

General => Chit-Chat => Topic started by: Bitbeisser on June 20, 2012, 04:50:29 pm

Title: You thought C was easy?-The Little C Function from Hell... ;-)
Post by: Bitbeisser on June 20, 2012, 04:50:29 pm
Just ran into this little gem this morning.... ;D

http://blog.regehr.org/archives/482

Ralf
Title: Re: You thoight C was easy?-The Little C Function from Hell... ;-)
Post by: migf1 on June 21, 2012, 12:34:47 am
Just ran into this little gem this morning.... ;D

http://blog.regehr.org/archives/482 (http://blog.regehr.org/archives/482)

Ralf

Nice one.

Pelles C 7.0rc4 x86 seems to always output the correct result, no matter what options I pass to its command line :)
Title: Re: You thought C was easy?-The Little C Function from Hell... ;-)
Post by: Bitbeisser on June 28, 2012, 06:36:06 pm
Found another one going through my list of programming blogs this morning, a very typical example why people should absolutely get used to initializing variables properly rather than relying on C's "if it isn't explicitly defined, it's an int" philosophy...  :-\

http://markshroyer.com/2012/06/c-both-true-and-false/

Ralf
Title: Re: You thought C was easy?-The Little C Function from Hell... ;-)
Post by: CommonTater on June 28, 2012, 08:04:43 pm
Found another one going through my list of programming blogs this morning, a very typical example why people should absolutely get used to initializing variables properly rather than relying on C's "if it isn't explicitly defined, it's an int" philosophy...  :-\

http://markshroyer.com/2012/06/c-both-true-and-false/

Ralf

A rather nice introduction to the world of undefined behaviour...

Title: Re: You thought C was easy?-The Little C Function from Hell... ;-)
Post by: Stefan Pendl on June 28, 2012, 09:39:05 pm
This was a really interesting read ;)