C_win base printf%x outputs decimal numbers in 16 binary format

Source: Internet
Author: User

Town Yard text:
The Confucian School of the practical and practical, line Buddhism Purdue sentient beings, the monastic Kangsheng fidelity, understanding of the easy to change the image. To science and technology to shine a good law, the achievement of a conscience blog.
______________________________________________________________________________________________________


Code

#include <stdlib.h> #include <stdio.h>int main () {int num = 14;    printf ("%x\n", num),//16 binary lowercase printf ("%x\n", num),//16 uppercase system ("pause"); return 0;}



Result

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8D/FA/wKioL1iyWsqiXjONAAAtphPXYcA448.png "title=" Qq20170221152614.png "alt=" Wkiol1iywsqixjonaaatphpxyca448.png "/>


______________________________________________________________________________________________________

If you think this blog post has a place to improve, please comment, I will think carefully.
Note: This blog post is only used for scientific research, if the infringement of your interests, please inform me, I will make the appropriate treatment.




This article is from the "calm mind like water, chi just like the pan." Blog, be sure to keep this source http://xinjingzhigang.blog.51cto.com/12262830/1901340

C_win base printf%x outputs decimal numbers in 16 binary format

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.