There is always something you don't know in C Language -- (continuous update)

Source: Internet
Author: User

There is always something you don't know in C Language -- (continuous update)

/* Although I have learned C language, I still haven't met some things that I don't know: */# include

 
  
# Define NUMBER 5/* define: the variable names after the macro definition are automatically replaced with strings during capital compilation, that is, the NUMBER in the file is replaced with 5 typedef to an alias for the existing data type, such as typedef int int_wy ---> SO int_wy it indicates the int type */int array [NUMBER]; int main () {int I = 9; // puts is generally used to display puts ("used? "); //" Used? "+ I --> try puts again (" used? "" Is that true? "); Printf (" He can make a sound: \ a \ n "); putchar ('\ n'); extern int array []; /* This is actually useless because the array has been declared before. Here it is not to define the array extern, which indicates to try the array created somewhere * // * The static defined object is static storage. period, the preparation phase is created before the main execution, and the program disappears at the end */return 0 ;}

 

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.