What is the size of an Integer ?

Is the size of an Integer Platform Dependent or Architecture Dependent?

3 Comments »

  1. Rajiv said

    I suppose it is dependent on the platform.

  2. KC said

    Can you explain me how is it platform dependent ?

  3. Guru said

    platform dependent means based on operating system architecture.
    ie in some of 32 bit OS, the size of int is 2byte and in some of 64 bit OS, the size of int is 4 byte. It also varies based on the compiler used.
    Example: in VC++ it is 4byte and in TC++ it is 2 byte.

RSS feed for comments on this post · TrackBack URI

Leave a Comment