reading void pointers

Member
Posts: 567
Joined: 2004.07
Post: #16
I thought a long was 6.

It's not magic, it's Ruby.
Quote this message in a reply
Puzzler183
Unregistered
 
Post: #17
A long is 4 on 32 bit systems or 8 on 64 bit systems. Try it for yourself:

Code:
#include <stdlib.h>

int main()
{
    printf("long: %d\n\n", sizeof(long));
}
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Should global variables be pointers or full objects? ia3n_g 1 2,318 Aug 4, 2006 05:53 PM
Last Post: OneSadCookie
  Dangling Pointers/ Memory Leak definitions... WhatMeWorry 1 3,949 Oct 3, 2005 10:43 AM
Last Post: OneSadCookie
  NULL versus 0 pointers? WhatMeWorry 14 7,003 Apr 6, 2005 05:42 AM
Last Post: Andrew
  Pointers &amp; Archiving in Cocoa Shivers 6 3,720 Apr 4, 2005 02:36 AM
Last Post: DoG