KEIL, MDK 关于C99结构体变量初始化

 C99:here

例如声明了这样的结构体

void test1()
{
        tt_t t1 ={
            .a = 1,
            .d = 'd',
            .b = 2,
            .c = 3};
        
        static tt_t t2 = {
            1,2,3,'d'
        }; 
}

赋值结果:

设置:

原文地址:https://www.cnblogs.com/qiyuexin/p/9009727.html