Dreams say how much is equal

Source: Internet
Author: User

This morning a long dream, the details have been remembered is not very clear. With fragments of the remnant dream, the story is probably narrated.

My friends and I are playing cards in the house, and then two kids (a man and a woman, should be siblings) rushed into the door to say that my three little friends did something bad (stole them?) unknown), to do a job. And then I saw the two of them with something like magic on their side. I know they're bad, they're gods. Or is it the monastic? Anyway, the non-ordinary, although only 33-year-old appearance, but it seems very bad. Now think of the two gods in "Qui-gon" in my consciousness. At that time, you have to find their accounts, then you will be me, I have a math problem to see if you can answer (and then slowly see the situation will be their walk). Two also agreed, I will say one plus how much? Give a different answer.

One plus one equals two, and this is sure to be known, but to give a different answer, hehe. But in a minute, the Tenjin sister said, "10, binary inside is ten", yes, every two into a, 1+1=10 indeed true. Of course, the answer in my mind is not this, I said, "Well, that's true, but it's not the answer I'm thinking of." Of course, to their two qualifications, if not in my mind that the answer, they say a lot of the answer is not reconciled. And then I said, "What if one is a string?" ”。 At this time they sat down at the table, the God brother took a draft in the calculation, it appears, it seems to be converted to ASCII code, and then multiply with the matrix, vector add what, simply do not understand ... A minute and a second in the past, the god sister said she had some things (what do not remember) out for a few minutes, the Tenjin brother is still counting. The timing was just right, and my three partners stole away from the back door. In another two minutes, the Tenjin elder sister came back, the Tenjin brother Halfway also asked me several times calculate is right, I will also answer because I do not understand Ah >_<, ..., but still did not solve the final answer. I said, "Since you haven't figured it out yet, I'm going to open the drum (and say the answer)." Both of them have to serve, you say. "11! One plus one equals 11! In JS as long as any one is a string (of course two is a string also), add is 11 ". Believe at this time their hearts are collapsed, yes, JS inside Plus is not just the addition of mathematics, or the string connection number, 1+ "1" =11 is true. O ( ̄▽ ̄) d then they asked, what about Python? "Well, I didn't use python, so I don't know." Then, then, the dream is awake .....

OK, now check the data to do the test found. Python inside the integer and character added will be directly error, two integer 1 added is 2, two characters added is the string 11, and for the dream of the god brother of the calculation, should be in the C language, the character "1" equivalent to the ASCII inside the 0x31 that 49, then one plus one may have the following results: Two integer 1 adds 2, an integer 11 characters 1 adds 50, two character 1 adds 98. Of course C can also use%c output to get ASCII 2 (a smiley character), ASCII 50 (character 2), ASCII 98 (character B)

Dreams say how much is equal

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.