Comments and escape characters for 03-c languages

Source: Internet
Author: User

Learning Focus:

  • Code comments
  • Escape character

Learning content:

1. Annotations can make complex programs easy to read, and have no effect on the function and running results of the program, and can be used to test the code

2. Comments in the C language can be block-annotated with/* and/*, and everything between/* and/* is treated as a comment, the two tags may not be on the same line, so the note can contain more than one line at a time, or you can use//make a single line comment,//Only comment on what it is in, and (may also apply in other languages)

3. Escape character: The C language also allows a special form to represent a character constant, which is a sequence of characters beginning with \, and \ means escaping, which transforms the meaning of a character following it. Common escape characters are as follows: ' \ n ' denotes a carriage return, ' \ ' means a single quotation mark, ' \ ' means a double quote, ' \ t ' means a tab, ' \ \ ' means a backslash, ' \ \ ' denotes a null character, not a space.

Comments and escape characters for 03-c languages

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.