Question: what is the difference between long and int data types?
Answer: Key Differences Between int and long The basic difference between the type int and long is of their width where int is 32 bit, and long is 64 bits. The types int and long when counted in bytes instead of bits the type int is 4 bytes and the type long is just twice if type int i.e. 8 bytes.