我有以下C代码:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapMvcAttributeRoutes();
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new[] {
"Areas.Controllers"
}
);
}
但是,我对x86指令有疑问。对于foo函数,应该
void foo(int *p){
*p = 5;
}
void test(){
int p = 0;
foo (&p);
}
对应于
*p = 5