65,176
社区成员




inline void f()
{
static int i = 0
}
#include <stdio.h>
// The pragma here is used to ensure func() is inlined.
// C99 support the key word "inline".
#pragma always_inline
inline int* func(void)
{
static int i = 0;
return &i;
}
int main(void)
{
int *p = func();
*p = 1;
func();
printf("The result is: %d\n", *p);
return 0;
}