1234567890
1234567890 >f (str)=20
234567890asdfghjkl m(str) =19 234567890asdfghjkl >f (str)=20
.234567890asdfgh3kll2345
Mi(stz) =29
234567890asdfghjkll2345 f(str)=20
zna k_k onca__lancucha 7 8 9 0 a s df ghj k 1 li ia znak_konca_lancucha ■ :ToyTown:wyklad 04 MEW$
NŁW baih
TMerrz 1 Kol 33
riui roytuj Widok 'Jata wiem* Pomoc
6 •dttfinc TAB_HAX 20
7
8 v int main(void){
9 char str[TAB_MAX]="M j
10 printf("*s = %ć n-.-TAB_.KAX-, TAB_MAX);
11 printf(Nstr=%s\r strlcn(str)=fclu ,str,strlen(str));
12 printf ( "strsfts ,i sizeof (str )=%lu vn\n*f str,sizeof(str)) ;
13
14 strcpy (str,"1234567899")j
15 printf(Hstr=Xs\rstrlen(str)=fclu n",str,strlen(str))j
16 printf("8trsXs\nsiztof(str)s%lu "#str9sizeof(str));
19 printf("str=*s\rstrlen(str)z%lu,str,strlen(str));
26 printf ( "strsKs\r sizeof(str)=*lu ,n\n" ,str, sizeof (str ) ) j 21
22 strcat (str,w1234567890");
23 size_t rozj
24 printf("strrfcs strlen(str)=*lu ",str,roz=strlen(str))
25 printf ( "str=fcs\* sizeof (str )=%lu n \n " , str , sizeof ( str ) ) ;
26
27 str[S]='\ef;
28 printf ( "str=%s\r. strlen(str )=$lu\n" s str,strlcn(str));
29 printf ( "strr^sNr sizeof (str )=%lu n1 n" , str, sizeof (str )); 36
31 char *pc=strj
32 int i=0;
33 for(;i<roz$i++)
34 if(*(pcei))
35 printf ( "%cm , ♦(pc-fi) );
36 elsc
37 printf(" :nak_konca_lancucha ");
38 printf("\n")$
39 return 0;
*1
\A*ST WIER C Etnn& c