Basic review of C language (continuous)

Source: Internet
Author: User

Started iOS learning because of OC, it is necessary to learn some basic concepts of C. There's a lot of stuff.

It's basically a matter of programming.

0. What does programming mean?

By writing code, let the computer realize people's ideas. (Write code---> Compile Code---> Run program)

1. Program three elements, order, select, Cycle.

2. The statement constitutes a program, a statement, or an end.

3. Use GCC to compile the C language on the Linux platform. GCC can compile multiple languages. Use gcc file. c-o file on Mac. Out or direct GCC he compiles a a.out file.

4. Run the compiled file with a./file.

The type of the 5.c language occupies bytes that are affected by the operating system. The result of sizeof () is the standard.

6. Using int main () on Mac does not recommend void Main ().

7. The prefix operation efficiency is higher than the suffix efficiency.

8. The highest position in the byte bit indicates the positive or negative of the current number, so sometimes the addition is negative.

9.+-*/% Non 0 logical value is true.

10. You should develop a good habit of declaring variables to be initialized.

11. Data types are divided into two kinds 1. Basic data type 2. Pointer type

Basic review of C language (continuous)

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.