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 |
?
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 |
评论(0)