| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3350 bảng dữ liệu(PDF) 93 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 bảng dữ liệu(HTML) 93 Page - STMicroelectronics |
|
93 / 185 page ![]() AN3350 C compiler Doc ID 018512 Rev 2 93/185 12.2.3 Compound literal values When the C99 extensions setting is on, the compiler allows literal values of structures and arrays. Example 28 shows an example. Example 28 Example of a compound literal #pragma c99 on struct my_struct { int i; char c[2]; } my_var; my_var = ((struct my_struct) {x + y, 'a', 0}); 12.2.4 Designated initializers When the C99 extensions setting is on, the compiler allows an extended syntax for specifying which structure or array members to initialize. Example 29 shows an example. Example 29 Example of designated initializers #pragma c99 on struct X { int a,b,c; } x = { .c = 3, .a = 1, 2 }; union U { char a; long b; } u = { .b = 1234567 }; int arr1[6] = { 1,2, [4] = 3,4 }; int arr2[6] = { 1, [1 ... 4] = 3,4 }; /* GCC only, not part of C99. */ 12.2.5 Predefined Symbol __func__ When the C99 extensions setting is on, the compiler offers the __func__ predefined variable. Example 30 shows an example. Example 30 Predefined symbol __func__ void abc(void) { puts(__func__); /* Output: "abc" */ } |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |