我有以下代码
struct myStruct *struct_var;
struct myStruct * select_my_struct()
{
return struct_var;
}
some_function()
{
myStruct=struct_create();//struct_create() is of return type struct myStruct *
another_function(struct_var); // line A
another_function(select_my_struct()); //line B
}
我的问题是:A线和B 线做同样的事情吗?