Application of Job 92-D array and character array

Source: Internet
Author: User

Knowledge Points:

(1) The two-dimensional array is defined as:

Type an array group name [line length] [column length];

(2) referring to the elements of a two-dimensional array to make two subscript, the subscript and column subscript, in the form of:

Array name [row subscript] [column subscript]

(3) The reasonable range of subscript is [0, line length-1], the column subscript reasonable value range is [0, column length-1].

(4) The branch assigns the initial value, the general form is:

Type an array group name [line length] [column length]={{initial value table 0},...,{initial value table K}, ...};

The data in the initial value table K can then be assigned to the elements of line K at once.

(5)

The order is assigned an initial value in the general form:

Type an array group name [line length] [column length]={initial table};

The data in the initial value table can be assigned to the element one time, depending on the order in which the array elements are stored in memory.

(6) Two-dimensional array initialization is, if all elements are assigned the initial value, or the branch to kill, in the initial table listed in all rows, you can omit the length of the line.

(7) A character array is used to hold character data, which is defined, initialized, and referenced to a single-dimensional array of other types.

Forms such as: Char str[80];

(8) A string constant is a sequence of characters enclosed in double quotation marks, a string of characters that has an end sign of ' \ s '.

The difficulties and feelings encountered:

This homework before two problems, but the writing process because the two-dimensional array is not skilled so write some unnecessary cumbersome code, the latter two jobs feel no clue, after the online review understand the principle, but writing up or there is some vague place, Currently for two-bit arrays and strings this piece is not considered a thorough, although not floating on the surface, but will have to be more pondering.

Application of Job 92-D array and character array

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.