C函数及指针学习3

时间:2014-04-28 15:27:16   收藏:0   阅读:473
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
void main()
{
char *sa="sdhshdh";
char *sb="cdehhhhsdssssd";
printf("%d , %d \n",strlen(sa),strlen(sb));
   
if(strlen(sa)-strlen(sb)>=0)
{
    printf("run 1\n");
}
}
 warning C4013: ‘strlen‘ undefined; assuming extern returning int

bubuko.com,布布扣

?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <string.h>
void main()
{
char *sa="sdhshdh";
char *sb="cdehhhhsdssssd";
printf("%d , %d \n",strlen(sa),strlen(sb));
    
if(strlen(sa)-strlen(sb)>=0)
{
    printf("run 1\n");
}
}
 warning C4013: ‘strlen‘ undefined; assuming extern returning int


bubuko.com,布布扣




来自为知笔记(Wiz)


C函数及指针学习3,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!