Basic grammatical points in C language

Source: Internet
Author: User

The history of computer language:

Machine Language ----> Assembly Language ----> Advanced Language (1. for process 2. Object Oriented )

any one C The program is composed of one or more program segments, each of which has its own energy, we generally call these program segments as functions . So the C Language program has a function.

Compile: put C language code translated into 0 and the 1 , it will only detect if the syntax is incorrect and will not detect Main whether the function exists

Tools:clang compiler clang compiler needs to install command line tools

directive: cc–c file name . C

The compilation succeeds and an . o file is generated

Links: is actually to take our . O object file with the system's own library of functions, generate an executable file, detect Main whether the function exists

connector

directive:CC file name . O

4. run: ./a.out

Unix directive:

  1. 1. ls-l

  2. 2. pwd

  3. 3. –o Change file name

  4. 4. Touch Create a file

Key Words also called reserved words, altogether + keywords, the keywords are lowercase

Identifiers : Some symbols and names that are customized in the program. For example: the name of the function

Data:

Classification of data: static data, Dynamic Data (temporary data)

The static data is stored on the hard disk, the dynamic Data occupies the memory space

C data types in languages: basic data types, pointer types, constructed types, empty types

Scanf

Memory addressing is large to small, priority allocating memory addresses larger bytes to variables

Output Address %p

Scanf The function only accepts the address of the variable, it is a blocking function, waiting for the user input, after the user input, the user input value will be assigned to the variable

This article is from the "I am the way of it Growth" blog, please be sure to keep this source http://jeason.blog.51cto.com/9704473/1596290

Basic grammatical points in C language

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.