How to use long int in turbo c/c++.

In turbo c/c++ int contain 2 byte and range of int is -32678 to 32677 .so for long calculation we use long int at place of int which contains 8 byte. And range of long int is 2,147,483,647 to 2,147,483,647. As we use %d for int ,we use %ld for long int.

5 thoughts on “How to use long int in turbo c/c++.

Leave a Reply

Your email address will not be published.