Self-taught C language-1

Source: Internet
Author: User

1. The standard method of creating a C program is a letter + number;

2. Empty project Nothing can be generated, so will not return the failure, will show the compilation success;

3.cpp is the full name of C plus Plus, CPP can be compatible with C, so you can use CPP to write C program, you can also directly write C;

4. ' In any C program, the. Main function is used as the entry for the program, starting from the main function and ending with the main function. Void is the return value of the function, which is the type of the function's output value. The return value can be an empty type.

5.C language strictly case-sensitive;

6..h is the header file, the head of the abbreviation. The source file for the C language can be. C and. H,cpp source files are CPP and. h;

' 7.//is used to annotate the source code. The compiler will automatically ignore//after the content. Only one line can be commented,/* */May comment on multiple lines;

8. Annotations are helpful for programmers to read and understand the code, and annotations do not increase the size of the post-compilation program or affect the program's operation.

9. Errors in computer programs, defects, vulnerability--dug, the process of eliminating errors becomes--debug.

10. Breakpoints are a debugging method that is specially set up to facilitate the programmer to observe the internal state of the program during the debugging process. When the program runs to a breakpoint, it will be automatically paused, but the program's memory, registers and other data will be retained for the programmer to view;

The 11.C language itself does not provide input and output statements, and relies on the standard library for input and output.

Self-taught C language-1

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.