please explain me the size of int ,float.,char,double,and pointers in 16 and 32 bit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeyshree
    New Member
    • Jul 2010
    • 75

    please explain me the size of int ,float.,char,double,and pointers in 16 and 32 bit

    please explain me the size of int ,float.,char,do uble,and pointers in 16 and 32 bit
  • santechselva
    New Member
    • May 2010
    • 8

    #2
    Originally posted by jeyshree
    please explain me the size of int ,float.,char,do uble,and pointers in 16 and 32 bit processors
    for 32 bit system
    int 4 bytes
    float 4 bytes
    char 1 byte
    double 8 bytes
    short int 2 bytes
    long int 4 bytes

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      The size of any variable or type is the number of bytes it takes in memory.

      Apart from char, which always has a size of 1 by definition the size of all types is platform dependent.

      Comment

      Working...