没有main函数的C程序

标签: , ,

在Visual C++中新建一个Console Application工程,添加一个.c文件,代码如下:

#pragma comment(linker, "/Entry:demon")

void demon()
{
    __asm ret;
}

严格的说这好像已经不是C程序了,而且和编译器有关。没错,这只是标题党。

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. 中兴F607ZA查看超级管理员密码
  2. 批处理技术内幕:序
  3. 中兴F460 V3.0版本获取超级用户密码
  4. 开机弹出脚本错误对话框
  5. OpenWrt搭建KMS服务器激活Windows和Office

留下回复