#include <stdio.h>
inline void fun()
{
printf("hello\n");
}
void main()
{
fun();
}
Compiling...
InlineTest.c
InlineTest.c(3) : error C2054: expected '(' to follow 'inline'
InlineTest.c(4) : error C2085: 'fun' : not in formal parameter list
InlineTest.c(4) : error C2143: syntax error : missing ';' before '{'
InlineTest.c(10) : warning C4013: 'fun' undefined; assuming extern returning int
InlineTest
最新推荐文章于 2025-07-07 23:36:16 发布