IOS _c Language _1

Source: Internet
Author: User

One: In-system

1. Definition: Rounding mechanism (rounding method)

2, Usage: A, base: Also known as base, Radix n, n binary

                 b, Position right: starting from single digit, numbering to the left 0,1,        2,,,x representing n Binary                  C: Common computer binaries: two (0b), eight (0), 16 (0x), 10       &NBS P          d:x decimal: Weighted sum decimal to X-binary: Even excluding the rewind remainder    two, basic data type: keyword         Description &NB Sp             byte size  int               shaping type               4short           Short type           2LO ng             long shaping type           4 or 8float             Single precision floating point types      4double         Double precision floating-point type      8char   &NBS P           character types              1  three, constant variable variable definition   type modifier variable name = initial value variable naming rules: 1 Can only be made up of numbers, characters, underscores, and arrays cannot start with                           2 No system Reserved word name                         3 cannot use duplicate variable name     & nbsp                     4 See Understanding   Four, assignment operator = (lower assignment operator precedence) Five arithmetic operators +  &NB Sp                    -              &N Bsp         x                          &N bsp; /(number of digits not 0)                          (both sides are integers)                          ++        & nbsp                --(operator precedes, executes first, operator is behind, executes after)   Six compound operator arithmetic operator       &NB Sp   Grammar                     meaning        +=   &N Bsp          a+=b;                    a= a+b;       -=     &N Bsp          a-=b;                    a=a-b;      *=       &N Bsp         a*=b;                     a=a*b;     /=       &N Bsp          a/b=b;                   a= a/b;     %=         & nbsp      a%b=0;                 a= a%b;  Seven Expressions: constants, combinations of variables and operators. (The expression will have a return value)       statement  : statement is the smallest unit of program execution, generally with ";" End   eight input/output function  1 format output function printf                      syntax form print (format string,& expression 1,& expression,,,,); (by Normal characters and conversion characters)                       2 format input function scanf 

IOS _c Language _1

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.