NO

Author Topic: You thought C was easy?-The Little C Function from Hell... ;-)  (Read 5194 times)

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Just ran into this little gem this morning.... ;D

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

Ralf
« Last Edit: June 28, 2012, 06:33:44 PM by Bitbeisser »

migf1

  • Guest
Re: You thoight C was easy?-The Little C Function from Hell... ;-)
« Reply #1 on: June 21, 2012, 12:34:47 AM »
Just ran into this little gem this morning.... ;D

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 :)

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: You thought C was easy?-The Little C Function from Hell... ;-)
« Reply #2 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

CommonTater

  • Guest
Re: You thought C was easy?-The Little C Function from Hell... ;-)
« Reply #3 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...


Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: You thought C was easy?-The Little C Function from Hell... ;-)
« Reply #4 on: June 28, 2012, 09:39:05 PM »
This was a really interesting read ;)
---
Stefan

Proud member of the UltraDefrag Development Team