.


:




:

































 

 

 

 


1.




short -128... 127
unsigned short 0... 255
int -32768... 32767
unsigned int 0... 65535
long -230... 230-1
unsigned long 0... 231-1
char ASCII
char[ ]  
float 3.4 10-38... 3.4 10+38
double 1.7 10-308... 1.7 10+308

2. -

- stdio.h.

printf() - :

int printf(char *format, < >);

, . - , . ( ):

%[flags][width][.prec][F|N|h|l]type
type -
d i
u
x 16-
f
e E-
g E-
c
s
% %
flags - :
+
-
width - - . 0, . , , ..
prec - ,
F -
N -
l - long int double

scanf() - :

int scanf(char *format, < >);

, (. printf()). - , . , , %s, &.

putchar() - :

int putchar(int ch);

- , . , - EOF.

getchar() - :

int getchar(void);

.

puts() - :

int puts(char *string);

- , . .

gets() - :

char *gets(char *string);

 

- , . .

3. .

math.h.

abs - - |x|

int abs(int x);

labs - "" - |x|:

long labs(long x);

fabs - - |x|:

double fabs(double x);

sqrt - :

double sqrt(double x);

pow - :

double pow(double x, double y);

cos - - cos x ( x ):

double cos(double x);

sin - - sin x:

double sin(double x);

tan - - tg x:

double tan(double x);

acos - - arccos x:

double cos(double x);

asin - - arcsin x:

double sin(double x);

atan - - arctg x:

double atan(double x);

atan2 - - arctg x/y:

double atan2(double x, double y);

exp - :

double exp(double x);

log - - ln x:

double log(double x);

log10 - - log10x:

double log10(double x);

 





:


: 2016-11-02; !; : 481 |


:

:

,
==> ...

1728 - | 1722 -


© 2015-2024 lektsii.org - -

: 0.011 .