Programming basics C (notes)

Source: Internet
Author: User

Software development overview

Software: process data with a program

Processing data using a series of computer languages

Computer Language Development: machine language --> assembly language --> advanced language

 

Software Development Process:

1. analyze the problem (read question)

2. modeling (drawing flowcharts and defining algorithms: sequence, branches, and loops) algorithm features: 1. certainty 2. validity 3. poor 4. no input is allowed. at least one output

3. Compile programs (syntax and tools)

4. Test the program (Exceptions: runtime exceptions and non-runtime exceptions: syntax and logic)

 

Advanced Language ----> machine language: 1. Compile (intermediate files are generated)

2. Explanation (no intermediate file, read row by row)

 

Programming Language Overview

Advanced Language (c ):

1. Character Set

2. identifier (custom + keyword)

3. Statements

4. function library

 

Custom identifier:

1. It cannot be the same as the keyword

2. It cannot start with a number and may consist of digits, letters, and _

3. Learn what you mean

4. lowercase letters

 

Machine execution process:

Compile the source file --> compile the target file --> link header file --> execute the executable file

 

Data Storage

Role of data types:

1. Determine the data storage space

2. Determine the data storage format

 

Data Type classification:

1. Integer short (2) int (4) Long (8) bytes are stored in binary format. The highest bit is the symbol bit, the zero bit is positive, and the one bit is negative.

2. Float (4) double (8) is classified into decimal places and indexes in normalized data form, storing decimal places and indexes.

3. Character-type char (1) Stores integers Based on the acsilime code

 

Data value:

1. Constants

2. Variables

Constant: 1. Literal constant

2. Symbolic constants (easy to modify, bringing business meanings to constant values)

Variable:

1. Data Type

2. variable name

3. Data Value % placeholder & address character

 

Operators, expressions, and statements

 

Expression: it has a unique result and at least one operator.

 

OPERATOR:

1. Arithmetic Operator +-*/%

2. Value assignment operator =

3. Increment and Decrement Operators ++ --

4. Relational operators ><==

5. logical operators & |!

6. Conditional operators? : If Switch

7. Special Operator sizeof

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programming basics C (notes)

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.