A function pointer generated by the address operator is valid througho dịch - A function pointer generated by the address operator is valid througho Việt làm thế nào để nói

A function pointer generated by the

A function pointer generated by the address operator is valid throughout the execu¬tion of the C program. An object pointer generated by the address operator is valid as long as the object’s storage remains allocated. If the operand of & is an lvalue designating a variable with static extent, the pointer is valid throughout program execution. If the oper¬and designates an automatic variable, the pointer is valid as long as the block containing the declaration of the variable is active. If the operand designates a dynamically allocated object (e.g., by malloo), the pointer is valid until that memory is explicitly freed.
The effect of the address operator in Standard C differs from its effect in traditional C in one respect. In Standard C, the address operator applied to an lvalue of type “array of T” yields a value of type “pointer to array of T,” whereas many pre-Standard compilers treat &a the same as a—that is, as a pointer to the first element of a. These two interpreta¬tions are inconsistent with each other, but the Standard rule is more consistent with the in¬terpretation of &.
Example
In the following Standard C program fragment, all the assignments top are equivalent and all the assignments to i are equivalent
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
A function pointer generated by the address operator is valid throughout the execu¬tion of the C program. An object pointer generated by the address operator is valid as long as the object’s storage remains allocated. If the operand of & is an lvalue designating a variable with static extent, the pointer is valid throughout program execution. If the oper¬and designates an automatic variable, the pointer is valid as long as the block containing the declaration of the variable is active. If the operand designates a dynamically allocated object (e.g., by malloo), the pointer is valid until that memory is explicitly freed.
The effect of the address operator in Standard C differs from its effect in traditional C in one respect. In Standard C, the address operator applied to an lvalue of type “array of T” yields a value of type “pointer to array of T,” whereas many pre-Standard compilers treat &a the same as a—that is, as a pointer to the first element of a. These two interpreta¬tions are inconsistent with each other, but the Standard rule is more consistent with the in¬terpretation of &.
Example
In the following Standard C program fragment, all the assignments top are equivalent and all the assignments to i are equivalent
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Một con trỏ chức năng được tạo ra bởi các nhà điều hành chỉ có giá trị trong suốt execu¬tion của chương trình C. Một con trỏ đối tượng được tạo ra bởi các nhà điều hành địa chỉ là hợp lệ miễn là lưu trữ các đối tượng vẫn được giao. Nếu toán hạng của & là một giá trị trái chỉ định một biến với mức độ tĩnh, con trỏ có giá trị trong suốt chương trình thực hiện. Nếu oper¬and chỉ định một biến tự động, con trỏ là hợp lệ miễn là khối chứa các khai báo của biến đang hoạt động. Nếu toán hạng chỉ định một đối tượng cấp phát động (ví dụ, bằng cách malloo), con trỏ có giá trị cho đến khi bộ nhớ được giải phóng một cách rõ ràng.
Các ảnh hưởng của các nhà điều hành địa chỉ trong tiêu chuẩn C khác với ảnh hưởng của nó trong C truyền thống ở một khía cạnh. Trong tiêu chuẩn C, các nhà điều hành chỉ áp dụng cho một giá trị trái của kiểu "mảng của T" mang lại một giá trị kiểu "con trỏ đến mảng của T", trong khi nhiều trình biên dịch trước khi chuẩn điều trị & a giống như a-đó là, một con trỏ đến các yếu tố đầu tiên của một. Hai interpreta¬tions không phù hợp với nhau, nhưng các quy tắc tiêu chuẩn phù hợp hơn với các in¬terpretation của &.
Ví dụ
Trong chương trình mảnh vỡ Standard C sau đây, tất cả các nhiệm vụ hàng đầu là tương đương và tất cả các công việc để tôi là tương đương
đ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: