C-Language Summary (2)

Source: Internet
Author: User

1. The function printf ("") can output any fixed content in double quotes.

2. You must precede the program with the pre-processing command .

3. #include <stdio.h> not required ";", ":".

4. Any program must contain one: main function main.

5. Each statement must be followed by: a semicolon .

6. If the content branch is displayed, you can add the newline character \ nin the double quotation marks of the printf statement.

7. A value that cannot be changed is called a constant , and the amount whose value can be changed is called a variable .

8.int defines an integer variable, double defines a dual-precision floating-point variable.

9.

do{

Loop Body Statement

}while (expression)

10. Judge a three-digit number.

    printf (" single digit is:%d\n", n%);    printf (" 10 digits are:%d\n", n/);    printf ("The Hundred figures are:%d\n",n/);

C-Language Summary (2)

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.