pre-written functions Flashcards

1
Q

pre-written functions

A

defined in system libraries

contain return types, names, datatype parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

stdio.h

A

library with functions for performing input and output

printf()
scanf()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

stdlib.h

A

library with general functions

int rand() - returns random integers
int abs(int x) - returns absolute value of int x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

math.h

A

library with assortment of mathematical functions

double fabs(double x) - returns the absolute value of double x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

time.h

A

library with functions regarding dates and time

time(NULL) - returns time since Jan 1, 1970

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ctype.h

A

library with functions for mapping characters

int isalpha(int c) - checks if the character passed is alphabetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly