C language-------Learn to comb.

Source: Internet
Author: User

C language is a popular language, incorporating the control characteristics of computer science theory and practice. The advantages are high efficiency, portability, strong and flexible, for programmers.

1) program structure is three kinds:

Sequential structure

Select structure (branch structure)

Loop structure.

2) Read the program from the main () entrance, and then read from the top of the sequence (the loop to do the loop, hit the choice to do the choice), there is only one main function.

3) The computer's data is stored in a binary form in a computer. The location where the data is stored is his address.

4) bit is a bit that refers to 0 or 1. Byte refers to a byte, a byte = eight bits.

Each C language program after writing, are compiled first, after the link, the last run. (. C---->obj---->.exe) This process takes note of the. c and. obj files that cannot be run, only. exe files can run.

  

#include <stdio.h>/#: Preprocessing directives. h: Header file
#include <stdlib.h>

int main ()//start of program
{
printf ("Hello world!\n"); Print "Hellworld+ line break"
return 0;
}

Operation symbol: +-*/| | &&

true | | **         \

Short-circuit operation, trailing = skip directly, no longer executed

Fake && * */

ASCII code memory

The difference between front + + and post + +

Front + + is the first + + operation, in the subsequent operation

Post + + is the first operation, in the + + operation.

C language-------Learn to comb.

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.