/************ A sample source showing a truncation error resulting ******** ***************** from improper return type assigned to a **************** ******************************** function *******************************/ #include /* for sqrt funcion*/ #include /*Definition of the function square_root (takes one parameter x)*/ int square_root (int x) { return (sqrt (x) ); /* function returns the square root of value passed in INTEGER form */ } /* Main function definition*/ int main (int argc, char * argv []) { int i = atoi (argv [1]); /* Declaration of variable i and - the value of function atoi(converts string to integer) is assigned to i */ printf ("%d \n", square_root (i)); }