201671010127 2016-2017-2 problems encountered in Java programming

Source: Internet
Author: User

After learning some basic Java grammar, the excitement of the mind can not be restrained, always compare the differences between Java and C language Grammar, a free time will be used to learn the basic Java grammar to write some simple procedures. This does not, accidentally and into the difficulties, I sincerely ask you friends, how to solve my problem, the following attached to my problems.

I wrote the same program in Java and C, are using Newton iterative method to open the square, but the results of the two have some small differences, to the forum after consulting, the feeling is related to their own compiler bad environment, Java compiler is 64-bit, and C language compiler is 32-bit, I just want to know if there's any other reason than that? I implore the great God to give me help, thank you! Attached below.

C Language:

Java language:

201671010127 2016-2017-2 problems encountered in Java programming

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.