memset(&a, 0, sizeof(struct customer))函数

memset(&a, 0, sizeof(struct customer))函数定义在memory.h中,用于给指定的内存区域赋值,在该语句中,&a指定待赋值的内存首地址,0是要赋的值,而sizeof(struct customer)用于该内存区域待赋值的长度。


原文地址:https://www.cnblogs.com/isItOk/p/6243556.html