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.
Rajiv said
I suppose it is dependent on the platform.
KC said
Can you explain me how is it platform dependent ?
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.