Professional Documents
Culture Documents
COMP 208
Chapter 5
Math.h
• pow(x,y)
• sqrt(x)
• Abs(x)
2
Chapter 5
Find the error in each of the following program segments and
explain how the error can be corrected:
• int g( void ) {
printf( "Inside function g\n" );
int h( void ) {
printf( "Inside function h\n" );
}
}
3
Chapter 5
• void f( float a ); {
float a;
printf( "%f", a );
}
4
Chapter 5
• Function instructions that does not receive any arguments and does not return a
value.
5
Chapter 5
Implement the following integer functions: