Thread: Difference between 'int' and 'long int'

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You can experimentally measure it at runtime with the sizeof operator.
    Or you can consult the compiler manual for the given platform.
    EDIT: Clarification: sizeof is a compile time operator, so you can use it to make compile-time decisions, but that easiest way to know the size of something is just to print it out using sizeof at runtime!
    Last edited by Elysia; 03-26-2012 at 01:16 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 04-23-2011, 08:40 PM
  2. Replies: 1
    Last Post: 10-11-2010, 01:53 AM
  3. Conver long to 8 byte array and back to long
    By plopes in forum C Programming
    Replies: 3
    Last Post: 04-01-2009, 12:39 AM
  4. whats the difference between int and long?
    By orion- in forum C++ Programming
    Replies: 3
    Last Post: 01-02-2007, 08:18 PM
  5. STLport with MingW - Long Long error on project build
    By Mario F. in forum C++ Programming
    Replies: 2
    Last Post: 08-21-2006, 08:55 AM