Review Questions
What is the difference between an actual argument and a formal argument?
Write ANSI C function headings for the following functions described. Note we are asking just for the headings, not the body.
donut() takes an int argument and prints that number of 0s.
gear() takes two int arguments and returns type int.
stuff_it() takes a doubleand the address of a double variable and stores the first value in the given location.
Write ANSI C function headings for the following functions described. Note that you need write only the headings, not the body.
n_to_char() takes an int argument and returns a char.
digits() takes a double argument and an int argument and returns an int.
random() takes no argument and returns an int.
Devise a function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access