C language organization 4

Source: Internet
Author: User

Tag: String

// The definition of a two-dimensional array is very similar to that of a one-dimensional array, except that a one-dimensional array has more than one-dimensional arrays,
// Define an array: name of the array type [number of rows] [number of columns] = initial value (parentheses must be added when multiple elements are assigned initial values)


// When defining a two-dimensional array, the first digit can be left blank, and the number of rows can be omitted. However, the second-dimensional subscript must be specified.
// And the subscript of the first and second dimensions must be constants or constant expressions.

// String array, except that the string is stored in a one-dimensional character array, so it is essentially a two-dimensional character array.


// The array name indicates the first address of the array. It is a constant address and cannot be modified.

// Use the strcpy function to assign values to strings.
// Strcpy (STR, name [J]); // copy the content in the name [J] string to the temporary character array Str.

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.