(The last assignment, even if valid, would be nonsensical. The functio dịch - (The last assignment, even if valid, would be nonsensical. The functio Việt làm thế nào để nói

(The last assignment, even if valid

(The last assignment, even if valid, would be nonsensical. The function f would return a copy
of some structure, which would then have one of its components modified—just before the entire copy was discarded at the end of thé statement.)
(Some non-Standard C implementations do not allow functions to return structures at all. Of those that allow it, a few do. not allow a function call to have a selection operator applied to it; they would consider £ ( ) . a to be an error.)
If the expression before the period has type qualifiers, or if the member does, then the result has the union of both sets of qualifiers.
Example
The following assignment is invalid because X. a has type const int, the const having been inherited from x:
const struct {int a,b;} x; x.a = 5; /* Invalid */
An indirect component selection expression consists of a postfix expression, the op-erator - >, and a name. The value of the postfix expression must be a pointer to a structure or union type, and the name must be the name of a component of that structure or union type. The result is the named member of the union or structure and is an lvalue; it is modi¬fiable unless the member is an array. The expression e->name is by definition precisely equivalent to the expression {*
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
(The last assignment, even if valid, would be nonsensical. The function f would return a copyof some structure, which would then have one of its components modified—just before the entire copy was discarded at the end of thé statement.)(Some non-Standard C implementations do not allow functions to return structures at all. Of those that allow it, a few do. not allow a function call to have a selection operator applied to it; they would consider £ ( ) . a to be an error.)If the expression before the period has type qualifiers, or if the member does, then the result has the union of both sets of qualifiers.ExampleThe following assignment is invalid because X. a has type const int, the const having been inherited from x:const struct {int a,b;} x; x.a = 5; /* Invalid */An indirect component selection expression consists of a postfix expression, the op-erator - >, and a name. The value of the postfix expression must be a pointer to a structure or union type, and the name must be the name of a component of that structure or union type. The result is the named member of the union or structure and is an lvalue; it is modi¬fiable unless the member is an array. The expression e->name is by definition precisely equivalent to the expression {*ExampleIn the following code, both components of structure Point are set to 0.0 in a roundabout fashion to demonstrate this equivalence:Struct {float x, y; } Point, *Point_Ptr;Point.X ¿0.0;. /* Sets x to 0.0 */
PointPtr = ¡¿Point;
Poiht_Ptr->y B 0.0; /* Sets y to 0.0 */
If the expression before the - > has type qualifiers, or if the member does, then the result has the union of both sets of qualifiers.
Some C implementations permit the null pointer to be used on the left of the indirect selection operator. Applying the address operator & to the result and casting that result to
an integer type yields the offset in bytes of a component within the structure. This is not explicitly permitted or prohibited by the Standard, but it often works.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
(Việc chuyển nhượng cuối cùng, thậm chí nếu hợp lệ, sẽ là vô nghĩa. Hàm f sẽ trả về một bản sao
của một số cấu trúc, sau đó sẽ có một trong các thành phần của nó biến đổi, chỉ trước khi toàn bộ bản sao đã được loại bỏ vào cuối thé tuyên bố.)
( Triển khai một số phi tiêu chuẩn C không cho phép các chức năng để trả lại các cấu trúc ở tất cả Trong số những người đó cho phép nó, một số ít không cho phép một cuộc gọi chức năng để có một hành lựa chọn áp dụng cho nó;.. họ sẽ xem xét bảng () là một. một lỗi.)
Nếu biểu trước khoảng thời gian đã gõ vòng loại, hoặc nếu các thành viên không có gì, sau đó kết quả có sự kết hợp của cả hai tập của vòng loại.
Ví dụ
Việc chuyển nhượng sau đây là không hợp lệ vì một X. có kiểu int const, const có được thừa hưởng từ x:
const struct {int a, b;} x; xa = 5; / * * Không hợp lệ /
Một biểu thức lựa chọn thành phần gián tiếp bao gồm một biểu thức postfix, các op-erator ->, và một tên. Các giá trị của biểu thức postfix phải là một con trỏ đến một cấu trúc hoặc công đoàn kiểu, và tên của nó phải là tên của một thành phần của cấu trúc hoặc công đoàn loại. Kết quả là các thành viên mang tên của công đoàn hoặc cấu trúc và là một giá trị trái; nó là modi¬fiable trừ các thành viên là một mảng. Biểu thức điện tử> tên là theo định nghĩa chính xác tương đương với biểu thức {* Ví dụ
Trong đoạn mã sau, cả hai thành phần của cấu trúc Point được thiết lập để 0.0 trong một thời trang đường vòng để chứng minh tính tương đương này:
Struct {float x, y; } Point, * Point_Ptr;
Point.X ¿0.0 ;. / * Sets x 0.0 * /
PointPtr = ¡¿Point;
Poiht_Ptr-> y B 0.0; / * Bộ y đến 0.0 * /
Nếu biểu trước -.> đã gõ vòng loại, hoặc nếu các thành viên không có gì, sau đó kết quả có sự kết hợp của cả hai tập của vòng loại
Một số triển khai C cho phép con trỏ null được sử dụng trên trái của người điều khiển lựa chọn gián tiếp. Áp dụng các toán tử địa chỉ & với kết quả và đúc mà dẫn đến
một kiểu số nguyên sản lượng các bù đắp bằng byte của một thành phần trong cấu trúc. Điều này là không được phép một cách rõ ràng hoặc bị cấm bởi các tiêu chuẩn, nhưng nó thường làm việc.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: