View Single Post
  #6  
Old 04-10-2014, 09:48 AM
SamwiseRed SamwiseRed is offline
Planar Protector

SamwiseRed's Avatar

Join Date: Dec 2011
Location: Tatooine
Posts: 10,176
Default

Quote:
Originally Posted by r00t [You must be logged in to view images. Log in or Register.]
C is what God programmed our universe in. Post your C appreciation, hints, tips, & tricks itt


When Bjarne Stroustrup used to talk about the free-store I always thought new was overloaded to just use malloc. Then I discovered the main difference between new and malloc(): the C function doesn't set up C++ virtual tables so you get a read violation

here's a neat trick for detecting big endian system

Code:
const union { long one; char little; } is_endian = {1}; 
if (!is_endian.little)
SELECT finger FROM hand WHERE id = 3
What you have just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul.
__________________
Current Games:
Naw