不可以,但你可以用函数实现。例如 structfoo{inta;};voidcreate_foo(structfoo*p){p->a=123;}intmain(void){fooobj;create_foo(&obj);}