pre-written functions Flashcards
1
Q
pre-written functions
A
defined in system libraries
contain return types, names, datatype parameters
2
Q
stdio.h
A
library with functions for performing input and output
printf()
scanf()
3
Q
stdlib.h
A
library with general functions
int rand() - returns random integers
int abs(int x) - returns absolute value of int x
4
Q
math.h
A
library with assortment of mathematical functions
double fabs(double x) - returns the absolute value of double x
5
Q
time.h
A
library with functions regarding dates and time
time(NULL) - returns time since Jan 1, 1970
6
Q
ctype.h
A
library with functions for mapping characters
int isalpha(int c) - checks if the character passed is alphabetic