以下代码有什么问题
#include<stdio.h>
int main()
{
int *a=pointer_return();
}
int* pointer_return()
{
int a=10;
return &a;
}
它给了我错误
demo.c: In function ‘main’:
demo.c:5:9: warning: initialization makes pointer from integer without a cast [enabled by default]
demo.c: At top level:
demo.c:9:6: error: conflicting types for ‘pointer_return’
demo.c:5:9: note: previous implicit declaration of ‘pointer_return’ was here