数组:
- char data[10];
- memset(data, 0, sizeof(data));
指针:
1.char *data;
2.memset(&data,0,sizeof(data));
整型:
1.int data;
2.memset(data, 0, sizeof(data));
数组:
指针:
1.char *data;
2.memset(&data,0,sizeof(data));
整型:
1.int data;
2.memset(data, 0, sizeof(data));
转载于:https://www.cnblogs.com/dpf-learn/p/7762220.html