InlineTest

来源:互联网 发布:powerdesigner sql 编辑:程序博客网 时间:2024/05/15 22:22
#include <stdio.h>inline  void fun(){printf("hello\n");}void main(){fun();}Compiling...InlineTest.cInlineTest.c(3) : error C2054: expected '(' to follow 'inline'InlineTest.c(4) : error C2085: 'fun' : not in formal parameter listInlineTest.c(4) : error C2143: syntax error : missing ';' before '{'InlineTest.c(10) : warning C4013: 'fun' undefined; assuming extern returning int