DID YOU KNOW THIS ? QUESTION: Why is it difficult to write - TopicsExpress



          

DID YOU KNOW THIS ? QUESTION: Why is it difficult to write CROSS PLATFORM code in C/C++ and easy in Java ? ANSWER: The sizes of types such as int and long depend on the target platform in a case of C/C++. The size of an int on a 16-bit processor such as the 8086 is 2 bytes, but 4 bytes on a 32-bit processor such as Pentium or SPARC. Similarly, long are 4-byte on 32-bit processors and 8-byte on a 64-bit processors. These differences make it challenging to write cross-platform programs. In Java, the sizes of all numeric types are platform-independent. Also note that, Java does not have any unsigned types. Visit: subhashprogrammingclasses !
Posted on: Fri, 05 Dec 2014 04:00:00 +0000

Trending Topics



Recently Viewed Topics




© 2015