C, C + + notes

Source: Internet
Author: User

June 2017 reading book "C and Pointers"

#if 0

#endif

Better than commenting out the code. ("C and Pointers" 2017.06.07)

Differences between global variables and global static variables 1) Global variables are global variables that do not explicitly use static adornments, global variables are externally linked by default, scope is the entire project, global variables defined within one file, and in another file, through the declaration of the extern global variable name, You can use global variables. 2) A global static variable is a global variable that is explicitly modified with static, scoped to the file where the variable is declared, and the other file is not used with the extern declaration. (2017.06.07)

C, 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.