
本文共 2740 字,大约阅读时间需要 9 分钟。
���������������������������������������������������������������������C������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������Designated Initializer���
���������GNU/Linux���������������������������������������������������������������������������������������������������������������������C99���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������
������������������������
struct book { char title[MAXTITL]; char author[MAXAUTL]; float value;};
���������������������������value
���������������������������������������
struct book surprise = { .value = 10.99 };
���������������������������������������������������
struct book gift = { .value = 25.99, .author = "James Broadfool", .title = "Rue for the Toad" };
������������������������������������������������������������������������������������������������������������������������
struct book gift = { .value = 18.90, .author = "Philionna pestle", 0.25};
������������0.25
���������value
������������������
������������������������
������������������������������������������������������������������������������������������������������������������������������������������
���������
int a[6] = { [4] = 29, [2] = 15 };
���������������
int a[6] = { 0, 0, 15, 0, 29, 0 };
���������������������������������������������������������������������������������������������
���������������������������������
���Linux���������������������������������������������������������������usb.c
������������������������������������
static struct usb_driver usb_storage_driver = { .owner = THIS_MODULE, .name = "usb-storage", .probe = storage_probe, .disconnect = storage_disconnect, .id_table = storage_usb_ids,};
������������������������������������������������������������������������������
���������������������
���C89���������������������������������������������������������������������������������������C99���������������������������������������������������������������������������GNU C���������������������������������������C���������������������������������
������
������������������������������������������������������������������������������������������������������������������������������������������������������������������pter�����������������������������������������������������������������������������������������������������������������-hidden bugs������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
