第7行报错:
哪位大佬知道是为啥啊
不是第7行报错是第14行,strlen是什么,strlen()?你是想把指针p作为strlen()的指针对不对
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char s[]="test";
int (*p)(const char *str)= &strlen;
int len;
len=p(s);
printf("len=%d\n",len);
return 0;
}