Relative Content

Tag Archive for definition

Are there constraints for functions in structured programming?

I just talking with a colleague (University instructor) who teaches C (Fundamental of programming Course). He said I won’t give score to a student, if he uses I/O (scanf or printf or cin count) in a function (it shows he hasn’t understood it well) or if he writes a function which does two things (for example to return the maximum of an array, he shouldn’t sort the array and return the first element, however he can use two functions, one for sorting and another for returning the first element …)…