70,027
社区成员




int main(){
struct test{
int a;
char b;
};
struct test c;
c.a = 1;
c.b = 'a';
memset(&c,0x00,sizeof(c));
/* memset(&c,0,sizeof(c));;*/
printf("%c,%d\n",c.b,c.a);
system("pause");
}
+1 #include <stdio.h>
+2
+3 int main(){
+4 struct test{
+5 int a;
+6 char b;
+7 };
+8
+9 struct test c;
+10 c.a = 1;
+11 c.b = 'a';
+12
+13 /* memset(c,0x00,sizeof(c));*/
+14 memset(c,0,sizeof(c));
+15
+16 printf("%c\n",c.b);
+17
+18
+19
+20 }