Is long long int a valid Data Type

This is a discussion on Is long long int a valid Data Type within the C Programming forums, part of the General Programming Boards category; Hi Folks, Is this datatype included in the Standards. If yes, 1) what is the size of a long long ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    103

    Is long long int a valid Data Type

    Hi Folks,

    Is this datatype included in the Standards.

    If yes,
    1) what is the size of a long long int
    2) What would be its format specifier w.r.t printf / scanf

    Thanks in advance
    Have a wonderful day.... and keep smiling... you look terrific that way
    signing off...
    shiv... as i know him

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    Since you mention printf and scanf, I assume you mean in C
    http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/

    Post moved from C++ board to C board
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >1) what is the size of a long long int
    sizeof ( long long );

    >2) What would be its format specifier w.r.t printf / scanf
    That would be %lld in C99. C89 doesn't have long long as a standard type, so scanf/printf don't have flags for it.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can some one please tell me the cause of the error ?
    By broli86 in forum C Programming
    Replies: 8
    Last Post: 06-26-2008, 08:36 PM
  2. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  5. Half-life SDK, where are the constants?
    By bennyandthejets in forum Game Programming
    Replies: 29
    Last Post: 08-25-2003, 11:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21