Header Ads Widget

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.

Post a Comment

6 Comments