Past Notes Migration __ Array

Source: Internet
Author: User
The C compiler does not check that the subscript is out of bounds even though the two arrays are of the same type and size, they cannot be checked for equality. Cannot assign an array to another array as a whole two -dimensional array: The most commonly used multidimensional array, An array of two one-dimensional arrays can be thought of as a representation of a two-dimensional array of tables consisting of rows and columns: type specifier array name [constant expression 1][constant expression 1]; Example: int temp[4][3]; The C language does not have a specific string variable, and the storage of the string must be implemented by a character array. A one-dimensional character array is used to store 1 strings, each of which holds 1 characters. A two-dimensional character array is used to store multiple strings at the same time (each row stores 1 strings). The null character ' \ s ' is automatically added to the internal representation of the string, and it occupies memory but does not remember that the string length character array is defined, initialized, and the element's reference is the same as the normal array. String constants can be assigned to string variables

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Past Notes Migration __ 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.