.


:




:

































 

 

 

 





. , , , . , int plus[10]; plus , , . p1=plus; p1=&plus[0]; . , 6- plus[5] *(p1+5) . , , . , .

:

#include <stdio.h>

#include <ctype.h>

Void main(void)

{

char str[]=String From Letters in Different Registers;

Int i;

printf( );

while(str[i])

printf(%c,toupper(str[i++]));

}

#include <stdio.h>

#include <ctype.h>

Void main(void)

{

char str[]=String From Letters in Different Registers;

Int i;

printf( );

p=str;

while(*p)

printf(%c,tolower(*p++));

} // , , .

, , . 10 int *x[10];

: , y: x[2]=&y; y, *x[2].

#include <stdio.h> // .

#include <string.h>

#include <stdlib.h>

#include <conio.h>

Void main(void)

{

char *ext[]={exe,com,dat,c,pas,cpp};

char ch,sl[80];

For(;;)

{ do

{ printf( :\n);

printf(1, exe\n);

printf(2, com\n);

printf(3, dat\n);

printf(4, c\n);

printf(5, pas\n);

printf(6, cpp\n);

printf(7, guit\n);

printf( :\n);

ch=getche();

printf(\n);

}

while((ch<1||(ch>7));

if (ch==7) break;

strcpy(sl,dir *.);

strcat(sl,ext[ch-1]);

System(sl);

}

}

, . , , :

char *errors[]={Cannot open file,Cannot close file,Allocation error,System error};

, , , , . , char* ( char). :

char *pc; pc=hello, World!;

, . : int **point;

|

|

|

 

point int. , , point, **point.

,

5 :

- (structure);

- (union);

- (enumeration);

- (bit fields);

- typedef () .

, . , , .

:

Struct student

{

char name[30];

Int kurs;

char group[3];

Int index;

}

student struct student. . , struct student,





:


: 2016-11-12; !; : 392 |


:

:

- , .
==> ...

1575 - | 1389 -


© 2015-2024 lektsii.org - -

: 0.009 .