Basic explanation of C language-Overview of C Language

Source: Internet
Author: User
Tags bitwise operators

Basic explanation of C language-Overview of C Language
========================================================== ======================================

Each language has its own unique syntax rules and language definitions.

Commands are the minimum unit for program control on computers.

A set of all commands is called a computer's command system.

A program is a sequence of commands written in a certain language to complete a specific task.
========================================================== ======================================

Machine language -----> assembly language -----> advanced language

010101 compiler identifier C language, C ++, Java, etc.

-----------------------------------------

Machine-oriented

Both assembly language and machine language are machine-oriented. Different machines have different languages.

The emergence of advanced languages frees programmers from restrictions on computer hardware and focuses on program design rather than low-layer computer hardware.

The C language solves the problem by analyzing the steps required to solve the problem and regard the program as a process of data processing.

The programming language based on this method becomes a process-oriented language. C language is a process-oriented programming language.

C language advantages:Small amount of code, fast execution, powerful functions, and free programming.

Disadvantages of C language:Code writing has a long implementation cycle, poor portability, excessive freedom, and is prone to errors due to lack of experience, and many dependencies on the platform library.

========================================================== ======================================

I learned how to perform mathematics and physics, and I am not afraid to go all over the world;

I am afraid to learn the C/C ++ language and travel all over the world.

(1) You can write website background programs in C language.

(2) A brilliant GUI can be written in the C language.

(3) the C language can write a powerful library for a specific topic, and then facilitate the use of other programs, thus saving development time for other programs.

(4) the C language can be used to write large game engines.

(5) the C language can be written in another language.

(6) the C language can be used to write the operating system and driver programs, and can only be written in C language. All source code of the Linux operating system can be obtained from the Internet. You must have a deep understanding of the operating secrets of the operating system, understand C language.

(7) Any device that is configured with a microprocessor supports the C language. From the microwave oven to the mobile phone, it is promoted by the C language technology.
========================================================== ======================================

C language advantages:Concise, compact, easy to use, flexible, powerful, and efficient execution; strong expression and good portability.

C language only has 32 keywords and 9 control statements.

The C language is inferior to the following:

For example, for string processing, it is not as good as Perl;

For example, in numerical computing, it is not as good as in Fortran;

For example, artificial intelligence is not as good as Lisp.
========================================================== ======================================

32 keywords: (defined by the system and cannot be duplicated)

autobreakcasecharconstcontinue  default    dodouble     elseenumexternfloatforgotoifint        long       registerreturnshortsigned     sizeof     staticstructswitchtypedef    unsigned  union      voidvolatilewhile
========================================================== ======================================

Nine control statements:

if( )~else~for( )~while( )~do~while( )continuebreakswitchgotoreturn
========================================================== ======================================

34 operators:

Arithmetic Operator: +-*/% + + --

Relational operators: <==>>=! =

Logical OPERATOR :! & |

Bitwise operators: <> ~ | ^ &

Value assignment operator: = and its extension

Conditional OPERATOR :? :

Comma OPERATOR :,

Pointer OPERATOR :*&

Number of nodes: sizeof

Forced type conversion: (type)

Component OPERATOR:.->

Subscript operator: []

Others :()-
========================================================== ======================================

Methods and tips for learning C language:

1. More hands-on and less man-seeking

2. Learn more excellent code (xingxingda method)

3. We often use human thinking methods to compare computers and convert them into computer processing methods.

(If you don't know how to do this, don't let the computer do it)

Objective:

1. Learn C Language)

2. Skills in programming and simple algorithms

3. Deal with the interview part of the world's top 500 C Language

========================================================== ===================================<

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.