Unit2(ProgrammingLanguage)选编.ppt

Unit2(ProgrammingLanguage)选编

Unit Two Programming Language;; Some languages distinguish between functions which return variables and those which dont;C assumes that every function will return a value.If the programmer wants a return value, this is achieved using the return statement;If no return value is required, none should be used when calling the function.Here is a function which raises a double to the power of an unsigned, and returns the result.;The function follows a simple algorithm, multiplying the value by itself pow times.;A for loop is used to control the number of multiplications, and variable ret_val store

文档评论(0)

1亿VIP精品文档

相关文档